PDA

View Full Version : Redirecting old site to new


edburdo
04-22-2005, 11:21 AM
OK, I have a website that I split the content out into a separate website. I have all the individual content pages doing a 301 redirect over to the new site.

I now need to redirect the Category listing page. The URL is like this:
http://www.rlisolutions.com/?c=Games

And I want to redirect it to this:
http://www.ogametips.com/32/rli-solutions-ogame-tips-has-its-own-site

How do I set this up? I tried using:
RewriteCond %{QUERY_STRING} ^c\=Games$
RewriteRule ^$ http://www.ogametips.com/32/ [R=301,L,QSA]

But I get the ?c=Games appended to the new URL. Anyone have a simpler solution?


~ Eric

seomike
04-22-2005, 01:25 PM
Hello Eric welcome to the forums.

I've gone over this problem a couple of times :) It's a pain in the butt but there is a way to get through it. Take a look at post #13

http://forums.searchenginewatch.com/showthread.php?t=4494

Just a few easy steps

1. use a rewrite condition to detect old url (dynamic query)
2. use a rewrite rule to make that old page a proxy for a function page.
3. That function page will "use a function" to create the new static string
4. send the bot/user via 301 from the proxy/dynamic page to the new mod rewritten url.

It works like a charm if you can understand how the php and .htaccess is working together.

edburdo
04-22-2005, 01:37 PM
Thanx for the tips. I will check that out later on and see if I can sort it out. All the rest of the pages redirect fine, just that one with the ?c=Games bit...