Try this:
RewriteEngine On
Options -indexes
RewriteRule ^(.*).html$ /DIRECTORY/$1.html [L]
Replace DIRECTORY with a sub. If you do this:
RewriteRule ^(.*).html$ /$1.html [L]
It would create a loop and fail.
Or for a dynamic solution:
RewriteRule ^(.*).html$ /view.php?cat=$1 [L]
Creating a file called view.php to accept variables would then do this:
/free-sex-pics.html would translate to /view.php?cat=free-sex-pics
You could then have the view.php create a page with titles, alt tags, headers, etc for search engines.
Hope it helps.
|