301 Redirect
3 posts
• Page 1 of 1
301 Redirect
Hi guys,
I need to setup a 301 redirect but am struggling to get this URL working!
Old page = /for-sale/bansko%20(ski%20resort)/apartment.htm
New page = /for-sale/bansko/apartment.htm
The problem is my original page has brackets in and this seems to be breaking the rule!
I've tried so many different ways but am failing every time!
Any help greatly appreciated,
Thanks,
Pete
I need to setup a 301 redirect but am struggling to get this URL working!
Old page = /for-sale/bansko%20(ski%20resort)/apartment.htm
New page = /for-sale/bansko/apartment.htm
The problem is my original page has brackets in and this seems to be breaking the rule!
I've tried so many different ways but am failing every time!
Any help greatly appreciated,
Thanks,
Pete
Re: 301 Redirect
RewriteBase /
RewriteRule for-sale/bansko\s\(ski\sresort\)/apartment\.htm for-sale/bansko/apartment.htm [R=301,NC,L]
RewriteRule for-sale/bansko\s\(ski\sresort\)/apartment\.htm for-sale/bansko/apartment.htm [R=301,NC,L]
Re: 301 Redirect
Thanks for the quick response - I'll give this a try today. I temporarily fixed the problem by doing the redirect in my Coldfusion application.cfc but would rather keep this kind of stuff with Rewrite.
Thanks again.
Thanks again.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 54 guests