Help with Rewrite Rule
2 posts
• Page 1 of 1
Help with Rewrite Rule
I have the following rules:
RewriteRule ^about-us/ /about-us-1 [R=301]
RewriteRule ^about-us/delivery-team/ /about-us-2 [R=301]
For some reason the when the 2nd rule never really works it seems to always redirect to the 1st rule /about-us-1.
I'm not sure how to write the rule so each rule goes to it's own page. Any help would be greatly appreciated.
Thanks
Todd
RewriteRule ^about-us/ /about-us-1 [R=301]
RewriteRule ^about-us/delivery-team/ /about-us-2 [R=301]
For some reason the when the 2nd rule never really works it seems to always redirect to the 1st rule /about-us-1.
I'm not sure how to write the rule so each rule goes to it's own page. Any help would be greatly appreciated.
Thanks
Todd
Re: Help with Rewrite Rule
To clear this up some. I'm trying to redirect nested sub folders.
about-us/ = somepage.html
about-us/another-folder/ = anotherpage.html
But with my RewriteRules from my previous post anytime I have about-us/ in the URL the 1st redirect always seems to take over and I'm unsure how to write the rule to allow each URL to redirect to a different page?
about-us/ = somepage.html
about-us/another-folder/ = anotherpage.html
But with my RewriteRules from my previous post anytime I have about-us/ in the URL the 1st redirect always seems to take over and I'm unsure how to write the rule to allow each URL to redirect to a different page?
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests