Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
301 re-directs
Hi
I am converting a current html site into textpattern, they have existing html pages that have good positions in google and would like to use 301 re-directs to move the site links over. The existing pages must be directed to the same page with new url
eg
www.sitename.com/page1.html redirected to www.sitename/section/page1
and so on. The list might be really long but is nessesary, can this be added to the normal .htaccess from textpattern?
(I must use clean URLs for new site)
Please Help.
Thanks
Oliver
Offline
#2 2008-07-16 16:48:17
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: 301 re-directs
Just add lines like this to .htaccess (I’ve put them just above #php_value register_globals 0
):
Redirect permanent /page1.html http://www.site.com/section/page1
If it’s all going to the same section, and this part: page1
is the same in the old and new URL, you’d better use RedirectMatch and regular expressions and probably do it with one line instead of many…
Last edited by els (2008-07-16 16:55:17)
Offline
Pages: 1