Changing domain.

Discussion in 'Site & Server Administration' started by lordmenace, Jul 27, 2006.

  1. #1
    lordmenace, Jul 27, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    At mysite.com/.htaccess

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)$ http://www.mysite2.com/$1/ [R=301,L]

    or try

    RewriteRule ^(.*)$ http://www.mysite2.com/$1/ [R=301,L]

    if some stuff doesn't redirect right.

    This would redirect everything from tetrahost.net to the other host.
     
    Nintendo, Jul 27, 2006 IP
    wheel likes this.
  3. wheel

    wheel Peon

    Messages:
    477
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I went to + reputation to nintendo for such a helpful post (apache mod_rewrite rules suck big time and us newb's need to be spoon fed forever - props to those that don't get tired of it). Then I realized - holy cow, is that long list of green stuff his reps? Wowzer!
     
    wheel, Jul 27, 2006 IP
  4. Kaediem

    Kaediem Well-Known Member

    Messages:
    1,128
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    150
    #4
    Ok, stupid question - I want to change may domain from xyz.com to abc.com - I get the whole .htaccess thing except - do I put that .htaccess in the original domain or the new one and if I put it in the original, that would mean I need to keep the old domain name too? And if that's right, then how long would you keep it?

    sigh.
     
    Kaediem, Jul 29, 2006 IP
  5. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #5
    .htaccess file goes on your old domain, and you need to keep your old domain name until most of your visitors have stopped going via the old site. Search engines should stop spidering/indexed the old site after a few months.

    Cryo.
     
    Cryogenius, Jul 29, 2006 IP
    Kaediem likes this.
  6. Kaediem

    Kaediem Well-Known Member

    Messages:
    1,128
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Thanks Cryo!
     
    Kaediem, Jul 30, 2006 IP
  7. lordmenace

    lordmenace Well-Known Member

    Messages:
    541
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    140
    #7

    ++++++++++ Rep. Thanks.
     
    lordmenace, Jul 31, 2006 IP