301 Redirect question

Discussion in 'Site & Server Administration' started by hughlh, Oct 8, 2007.

  1. #1
    I hope this is the right place...

    I currently have a blog set up like this: thisdomain.com/blog but I want to move it to another domain, but house the blog in the root directory, like: thatdomain.com (no blog directory on a different url).

    If I do a simple 301, people will get forwarded, but it will go from www.thisdomain.com/blog/post to www.thatdomain/blog/post, right? But there will be nothing at the blog directory, so they will get an error page. Or am I missing something? I want them to go to www.thatdomain.com/post

    I really want my blog in my root directory this time. What can I do?

    FWIW, I am hosted on GoDaddy (I know, I know, but they are cheap and I have had zero trouble) and running wordpress.
     
    hughlh, Oct 8, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you try this:
    in htaccess file of the blog folder of the old domain
     
    cyanide, Oct 8, 2007 IP
  3. hughlh

    hughlh Peon

    Messages:
    67
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, I have done nothing yet. I am planning the move for later this week. But if I just do that, won't they be sent to the /blog directory of the new url?

    I guess my problem (as I see it) is I have a lot of inbound links. If someone goes to olddomain.com/blog/greatpost and I have a 301 redirect at olddomain.com, wont they get forwarded to newdomain.com/blog/greatpost? And if they do, there will be no /blog directory at new domain, so they will get a 404, right? I want them forwarded to newdomain.com/greatpost.

    Or maybe I am missing something. I am soooo the content guy, not the server guy...
     
    hughlh, Oct 8, 2007 IP
  4. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yep, you are missing something :)

    Look at the code again... no where does it show /blog directory

     
    cyanide, Oct 9, 2007 IP
  5. hughlh

    hughlh Peon

    Messages:
    67
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK, I finally came around and saw what you were saying.:eek:

    Tonight I loaded an .htaccess file with your command in it to my blog directory on olddomain.com/blog.

    However, when I go to olddomain.com/blog, it redirects me to newdomain.com/blog, where there is nothing, instead of redirecting me to newdomain.com :(

    So, I guess it is time for plan b. (I just wish I knew what that was, exactly...)
     
    hughlh, Oct 13, 2007 IP