Forum Moderators: phranque
I just made a big mistake on our site, and am urgently trying to solve it with a rewrite rule that would take a url with the structure:
[example.com...]
and actually return the page
[example.com...]
Basically, no matter what the directory1 and directory2 names are, and what comes after them, I always need them replaced by the single main-directory.
I can't seem to get anything that will work. If anyone has a quick fix on what would work it would be greatly appreciated.
RewriteEngine on
RewriteRule ([^/]*)$ /main-directory/$1 [L]
You didn't say if mod_rewrite is working at all; If not, then you may need to add
Options +FollowSymLinks Jim