Forum Moderators: phranque
I have been looking around and this is what i have made, but it doesnt work
RewriteEngine On
RewriteRule ^(.*)/(.*)$ /cache/$1/$2.html [nc]
Any help would be greatly appreciated.
(also is there a way so the redirect only happens if the url is www.mysite.com/zzzz/yyyy and not like www.mysite.com/index.php)
Edit: apparently this forum doesnt like seeing 3 x's in a row. srry
[edited by: Daleeburg at 8:46 pm (utc) on May 18, 2007]
RewriteEngine on
# Rewrite /zzzz/yyyy to /cache/zzzz/yyyy.html
RewriteRule ^([^/]+)/([^/.]+)$ /cache/$1/$2.html [NC,L]
> (also is there a way so the redirect only happens if the url is www.mysite.com/zzzz/yyyy and not like www.mysite.com/index.php)
This is already taken care of, because "index.php" has an extension, so the rule won't apply. The same thing keeps the rule from looping.
Jim