Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Redirect using .htaccess
Hi I’m changing my website from XHTML to Textpattern
I’d like to redirect my old pages to their corresponding new address.
Example
http://www.property-in-the-sun.com/Places%20to%20visit/Pruna/pruna.htm is now http://www.property-in-the-sun.com/Places-To-Visit/pruna
I’ve tried quite a few combinations like below but can’t get any to work. (My brain is now mashed)
Redirect 301 /Places%20to%20visit/Pruna/pruna.htm http://www.property-in-the-sun.com/Places-To-Visit/pruna
Thanks
Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Redirect using .htaccess
Escape the spaces by placing a backslash in front of it:
Redirect 301 /Places\ to\ visit/Pruna/pruna.htm http://www.property-in-the-sun.com/Places-To-Visit/pruna
Offline
Re: Redirect using .htaccess
Thanks Ruud
I have quite a few Redirects to set up.
Is it worth/possible to put a conditional statement around all the redirects fro the /Places\ to\ visit/ directory to speed up processing of the .htaccess file?
Thanks
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Pages: 1