Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-02 17:34:00

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

#2 2008-03-02 17:58:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#3 2008-03-02 19:17:51

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

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

Board footer

Powered by FluxBB