Hi, I am uploading HTML files to my webserver, for example file.html. This page is accessed through www.site.com/file.html - I want it as www.site.com/file without the .html. Well, I've got the code for that which is as follows... RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Code (markup): So if I go to www.site.com/file it shows the page. However, I now have to URLs: /file.html and /file - if Google sees both of these it will think it's a duplicate page, so how do I sort this? I tried making file.html redirect to file, but that causes a looping error. I just want the page/file to be accessible via www.site.com/file and NOT www.site.com/file.html Would appreciate some help.
Life will be easier if you do the exact opposite, and force everything to include the .html instead of what you're trying to do. I don't know where to begin on my list of headaches that I've gotten rid of by not trying to get rid of file extensions.