Hi there. I would just like to know if anyone can spot any problems in my .htaccess file before I use it everywhere on the site. This is in the same folder as the url.
http://www.plentyoftorrents.com/flsh/
Also how would I go about adding other urls to this like http://www.plentyoftorrents.com/flsh/sitemap.html
If the filename is .htm and not .html could that cause any problems?
.htaccess:
Thanks in advance.Code:RewriteEngine on RewriteBase / # ## Internally rewrite extensionless /flsh URLs to existing .html files # If no filetype extension on requested URL RewriteCond %{REQUEST_URI} !\.[a-z0-9]+$ # If URL plus extension exists as a file RewriteCond %{REQUEST_FILENAME}.html -f # Internally rewrite to file with extension RewriteRule ^flsh/(.*)$ /flsh/$1.html [L] # ## Externally redirect old .html-extension /info URLs to new extensionless URLs # If direct client request for .html files RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /[^.]+\.html\ HTTP/ # Externally redirect to URL without extension RewriteRule ^info/([^.]+)\.html$ http://www.plentyoftorrents.com/flsh/$1 [R=301,L]



Reply With Quote
Bookmarks