How do I

Username (e.g. epiz_XXX) or Website URL

https://www.obscure.gq

Question

How do I force https://, www. and remove .html all at the same time ive researched it but i cant find one to do it all and if i add the researched solutions together i get issues

Try using this htaccess code (overwriting the existing htaccess file you have in the htdocs folder) and see if it works:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} http [NC]
RewriteRule ^(.*)$ https://www.obscure.gq/$1 [L,R=301,NC]

RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
1 Like

https://i.imgur.com/PdV8Wxd.png :confused:

ok fixed it now ty

hmm it worked once now it doesnt
on https://www.obscure.gq/downloads

edit: it works on https://www.obscure.gq but not https://obscure.downloads

Just use Options +MultiViews +FollowSymLinks on this hosting. It disables all file extentions.

1 Like

ok thanks i think thats it working now ty guys for all the help

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.