Forum Moderators: phranque
www.example.com/emulators/Atari from the pages of your site and set up an internal rewrite to fetch content from the path /emulators/index.php?folder=Atari www.example.com/emulators/index.php?folder=Atari and redirects to www.example.com/emulators/Atari.
Should I re-write the script to create the URL to the direct folder each time?
RewriteRule ^(([^/]+/)*)index\.php(([^/]+/)*)$ http://www.example.com/$1$2 [R=301,L]
RewriteRule ^emulators/atari/800$ /emulators/index.php?folder=atari/800 [L] RewriteRule ^emulators/(([^/]+/)*[^/.]+)$ /emulators/index.php?folder=$1 [L] (([^/]+/)*[^/.]+) is "not a slash (one or more times) followed by a slash" [i.e. a folder], the whole "zero or more times" [i.e. any level of folders including none] followed by "not a slash or period one or more times" [i.e. a file without an extension].