Posted on: 02/08/10 05:10pm
By: Sculley
I recently switched a client's site from Geeklog to Wordpress to make updating easier, etc. Even though the URL is transferred to the new files, the old pages from Geeklog are still showing up in the SERPs. I am wondering how I can first find all pages that are still active on Geeklog (w/o testing every link and every post) and then how to redirect them to the new site. Is there a way to globally do this w/o looking up each blog post, etc.? The site is www.subtleyoga.com and so far, one of the Geeklog pages showing in the SERPs is http://www.subtleyoga.com/staticpages/index.php?page=asheville-yoga-teacher-training.
It may just be the /staticpages/ that are showing but haven't checked everything.
Thanks so much in advance!
Re: Redirect globally
Posted on: 02/09/10 06:59am
By: beewee
all news stories have the url .../article.php/**
all static pages have the url .../staticpages/index.php?page=** (or with url_rewrite: .../staticpages/index.php/**)
**= story id/slug, page slug/id
Just make 2 redirect(match) rules to redirect them to the new permalinks, see
http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirectmatch[*1]
I hope you did not change all the id's/slugs, unless you like to make a lot of redirects instead of just 2...
Re: Redirect globally
Posted on: 02/09/10 11:07am
By: Sculley
Thanks so much! Unfortunately, I don't understand redirects besides the very basic ones. From the link you gave me, I see the format should be:
RedirectMatch (.*)\.gif$ http://www.anotherserver.com$1.jpg
I know the below is incorrect but I'm not sure what to fill in. Can you show me what it should be?
RedirectMatch (/staticpages/index.php/**) http://www.subtleyoga.com
RedirectMatch (/article.php/**) http://www.subtleyoga.com/category/b...towards-bliss/
Someone transferred the blog for me. I think he left all the links the same for the blog so two should work.
Re: Redirect globally
Posted on: 02/09/10 03:57pm
By: beewee
Quote by: SculleyThanks so much! Unfortunately, I don't understand redirects besides the very basic ones. From the link you gave me, I see the format should be:
RedirectMatch (.*).gif$ http://www.anotherserver.com$1.jpg
I know the below is incorrect but I'm not sure what to fill in. Can you show me what it should be?
RedirectMatch (/staticpages/index.php/**) http://www.subtleyoga.com
RedirectMatch (/article.php/**) http://www.subtleyoga.com/category/b...towards-bliss/
Someone transferred the blog for me. I think he left all the links the same for the blog so two should work.
Something like this perhaps? I have not very much experience with redirects
RedirectMatch 301 (.*)\/staticpages/index.php$ http://www.subtleyoga.com$1
RedirectMatch 301 (.*)\/article.php/$ http://www.subtleyoga.com/category/$1
Re: Redirect globally
Posted on: 02/09/10 04:01pm
By: Sculley
Okay. Thanks! I'll try that. Any idea if I should just tag it onto the current .htaccess file?