Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 07:58 am EDT

Geeklog Forums

Redirect globally


Status: offline

Sculley

Forum User
Junior
Registered: 10/15/09
Posts: 19
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!
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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

I hope you did not change all the id's/slugs, unless you like to make a lot of redirects instead of just 2...
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Sculley

Forum User
Junior
Registered: 10/15/09
Posts: 19
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.
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Quote 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.



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

Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Sculley

Forum User
Junior
Registered: 10/15/09
Posts: 19
Okay. Thanks! I'll try that. Any idea if I should just tag it onto the current .htaccess file?
 Quote

All times are EDT. The time is now 07:58 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content