I just want to get a quick htaccess redirection. ie:
domain.com/subfolderGreen –> domain.com/index.php?folder=subfolderGreen
(note that the subfolderGreen actually exists)
I’ve been trying but couldn’t get to the regex needed.
thanks.
a.
ADDED:
Sorry, i want this to work for any subfolder, not just “subfolderGreen”
I’m using
RewriteRule ^/([^/]+)/?$ /index.php?folder=$1 [L]
but it’s not working.
any clues?
I would think your example would cause an endless loop since /index.php matches what you are doing. Try this:
If you want it to work for all directories that exist, this will probably work as well.