1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Moving Blog(wp) from subdomain to whole new domain

Discussion in 'Apache' started by MISsupport, Aug 13, 2007.

  1. #1
    Hi,

    I just moved my blog from http://stevesblogen.i2mfan.com/ to www.mcgrath.ca.

    I added this below to my .htaccess(old blog):(found this in the forum)

    Options +FollowSymlinks
    RewriteEngine on
    rewriterule (.*) http://www.mcgrath.ca/$1 [r=301,L]

    But if I click any URL(blog post, category...) on the old blog, I go to the main page of the new blog and not it's corresponding URL.

    The same structure was kept.

    Thanks
     
    MISsupport, Aug 13, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    rewriterule (.*)
    try
    RewriteRule ^(.*)$ http://www.mcgrath.ca/$1 [r=301,L]
     
    powerspike, Aug 13, 2007 IP
  3. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cyanide, Aug 13, 2007 IP
    Johnburk likes this.
  4. MISsupport

    MISsupport Peon

    Messages:
    269
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If a do a Google search on one article with a full URL, it goes to the new site and to the good post. I even try not post like a date or a category and both were redirected fine.

    I was not sure and wrote it like that:

    Options +FollowSymlinks
    RewriteEngine on
    Redirect 301 / http://www.mcgrath.ca/

    I often saw the last line but taught it would only go to the main page only. Plus, I was not sure how to write it alone or with other lines.

    Thanks both of you!
     
    MISsupport, Aug 13, 2007 IP
  5. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You're welcome, now rep me :)
     
    cyanide, Aug 13, 2007 IP
  6. MISsupport

    MISsupport Peon

    Messages:
    269
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You have been rep.

    Sorry, not used to it but nice ideal.

    I will check if I was rep myself.
     
    MISsupport, Aug 13, 2007 IP
    cyanide likes this.
  7. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Glad to help

    Thanks for the rep :) - gave it back
     
    cyanide, Aug 14, 2007 IP