from http://www.mysite.com to http://www.yoursite.com

Discussion in 'Apache' started by psanjay, Sep 19, 2006.

  1. #1
    Hi,

    How do I write rewrite rule to change the url from one server to another like from http://www.mysite.com to http://www.yoursite.com

    Thanks,
    Sanjay
     
    psanjay, Sep 19, 2006 IP
  2. Softbrix

    Softbrix Peon

    Messages:
    83
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Softbrix, Sep 19, 2006 IP
  3. skelton1234

    skelton1234 Guest

    Messages:
    258
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    here is what I use...

    Place this in the root directory of the site you want to redirect from ...(In a .htaccess file)

     
    skelton1234, Sep 19, 2006 IP
  4. skelton1234

    skelton1234 Guest

    Messages:
    258
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    BTW... your webserver needs to allow mod rewrite in order to do the 301 redirect above.
     
    skelton1234, Sep 19, 2006 IP
  5. sunday

    sunday Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    sunday, Sep 28, 2006 IP