Forum Moderators: phranque

Message Too Old, No Replies

Blog Redirect to Sub Domain

Trying to redirect old blog and all posts

         

mycreditgroup

4:34 pm on May 27, 2009 (gmt 0)

10+ Year Member



Ok, I've read all I can and nothing has worked so far.

Old blog: www.example.com/blog/

Changed it to: blog.example.com
via 301

The code looks like this:
redirect 301 /blog http://blog.example.com

I thought it did the trick, UNTIL looking in Google's webmaster tools. Its finding 200 errors--all the old, individual posts. It sees them as 404 & 301. Looks very sloppy.

I was told a simple WILD CARD would redirect /blog/ and all of its contents (and anything else) google may look for, to the new subdomain blog.example.com

Any help on this wildcard would be so appreciated.

Thank you

[edited by: jdMorgan at 9:18 pm (utc) on May 27, 2009]
[edit reason] example.com [/edit]

jdMorgan

8:35 pm on May 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I was told a simple WILD CARD would redirect /blog/ and all of its contents (and anything else) google may look for, to the new subdomain http://blog.example.com

Because the "Redirect" directive uses prefix-matching, a wild-card is exactly what you've got with your current set-up. It will take some time --possibly months-- for the search engines to digest all those 301'ed URLs, so give it some time.

I would suggest including the trailing slashes though:


Redirect 301 /blog/ http://blog.example.com/

However, you will want to investigate those 404 errors. They may be old errors --from before the time that you installed the redirect-- but if not, then you'll need to figure out why those URLs are not being redirected to a valid destination.

Jim

[edited by: jdMorgan at 8:36 pm (utc) on May 27, 2009]

mycreditgroup

9:10 pm on May 27, 2009 (gmt 0)

10+ Year Member



Thank you jd - I'll watch and let you know if time was the cure.

Thanks again

jdMorgan

9:16 pm on May 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can also test those URLs yourself to provide added reassurance in the interim. Download and install the "Live HTTP Headers" add-on for Firefox/Mozilla browsers, open its report window, and then click on the 404 links. Make sure that your server returns a single 301-redirect response with the proper (new) URL given in the "Location:" response header.

It's important that the initial request for the "bad" old URL is redirected to the final, correct, new URL in one single step, and that the response code is a 301, not a 302 or anything else.

Jim

[edited by: jdMorgan at 9:19 pm (utc) on May 27, 2009]

mycreditgroup

9:52 pm on May 27, 2009 (gmt 0)

10+ Year Member



hey, thats pretty slick. They all appear to be 301 to the proper address so, time should be all thats left.

Thank you very much