|
#1
|
|||
|
|||
|
Hi,
I am currently a client and have been trying figure out how to hide my .html extensions in the web browser. I came across a .htaccess file, uploaded to the public_html folder and it still doesn't work. Does anyone know what I'm doing wrong? RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Your help is very much appreciated. |
|
#2
|
||||
|
||||
|
I'd definitely do this by forcing a file type instead of using a regex rewrite. Would something like this work:
Code:
<Location /htmlfiles> ForceType text/html </Location> Code:
ForceType text/html
<Location /css>
ForceType text/css
</Location>
<Location /includes>
ForceType application/x-httpd-php
</Location>
__________________
Follow me on Twitter! http://twitter.com/mrw |
![]() |
| Bookmarks |
| Thread Tools | |
|
|