Changed my domain name, how do i redirect ?

Discussion in 'Apache' started by domainsurfer, Dec 11, 2007.

  1. #1
    I own a forum, and i recently changed my domain name from http://abc.info to http://xyz.in

    If supposing a user is trying to open ,
    http://abc.info/board/new-thread.html
    Code (markup):
    , how can i replace the domain name with the new one xyz.in to redirect him automatically to
    http://xyz.in/board/new-thread.html
    Code (markup):
    I am supposing there must be a htaccess rule to put in my old domain name root, which can convert the old domain name to my new one ?

    Waiting for your replies. Help is really appreciated !
     
    domainsurfer, Dec 11, 2007 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RedirectPermanent / http://xyz.in/ 
    Code (markup):
    will do the job.

    Jean-Luc
     
    Jean-Luc, Dec 11, 2007 IP