I'm trying to remove two directories from the path of a website, but I just can't seem to get the mod_rewrite syntax right.
I have a url coming in with a url like
http://www.mysite.com/directoryone/directorytwo/mypage.php?key=value
And I'm trying to redirect it to http://www.mysite.com/mypage.php?key=value
I'm pretty sure I have the 'where I want it to go' part right:
/$1 [QSA,R=301]
But the removing of the two directories isn't being nice. :(
- [EMAIL PROTECTED] mod_rewrite Bob Smith
- Re: [EMAIL PROTECTED] mod_rewrite Robert Ionescu
- Re: [EMAIL PROTECTED] mod_rewrite Bob Smith
- Re: [EMAIL PROTECTED] mod_rewrite Brian Rectanus
- RE: [EMAIL PROTECTED] mod_rewrite Axel-Stéphane SMORGRAV
- Re: [EMAIL PROTECTED] mod_rewrite Robert Ionescu
- RE: [EMAIL PROTECTED] mod_rewrite Axel-Stéphane SMORGRAV
- Re: [EMAIL PROTECTED] mod_rewrite Robert Ionescu
- RE: [EMAIL PROTECTED] mod_rewrite Axel-Stéphane SMORGRAV