0
|
Hello, Thank you for your question on removing html file extensions. The code we have given those who want to remove extensions is below, there is one for php and one for html. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Give that a try and you should be fine. Keep in mind if someone types in the .html extension it still may show up. This is largely to allow the use (links, URLs,etc) to be used with or without the extension. Kindest Regards, Scott M |
0
|
How are so many people so stupid? I mean, you can't remove the extension, since if you do that, the browser won't know how should it render the specified file, will it be .txt, .html, .htm, .css, .js, etc... And no, there isn't a script which works. If anyone was wondering. |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |