I have:
https://example.com
and
https://tools.example.com
I want it so that whenever I visit : https://tools.example.com/test.html, it brings me to https://tools.example.com/test
So basically I want to remove the html extension from the subdomain.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
This only works for the domain, not the subdomain ^
https://example.com
and
https://tools.example.com
I want it so that whenever I visit : https://tools.example.com/test.html, it brings me to https://tools.example.com/test
So basically I want to remove the html extension from the subdomain.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
This only works for the domain, not the subdomain ^

