Modrewrite Permanent Redirect

Discussion in 'Apache' started by EGS, Nov 14, 2006.

  1. #1
    EGS, Nov 14, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*)$ http://www.new-wacko-domain.com/$1 [R=301,L]

    Depending on da kind of URLs, it might not be very friendly!!!!
     
    Nintendo, Nov 14, 2006 IP
  3. EGS

    EGS Notable Member

    Messages:
    6,078
    Likes Received:
    438
    Best Answers:
    0
    Trophy Points:
    290
    #3
    Doesn't need to be. Just needs to be search engine friendly because I changed the domain of my site, but search engines just know the article URLs of the one domain - now they can get to the same articles with the new domain without me getting banned. :D
     
    EGS, Nov 14, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Try that out. I've been able to move a whole vBulletin section to a new domain using that code, while some times, like if the URLs are complicated, others have had trouble using one line for everything with that code.
     
    Nintendo, Nov 14, 2006 IP