View Single Post
Old 01-16-2004, 07:54 PM  
DerekT
Confirmed User
 
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
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.
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote