How do I make a redirecting link?

Discussion in 'HTML & Website Design' started by El-Diablo, Jan 8, 2007.

  1. #1
    Like lets say I wanted to make www.abc.com redirect to my main website, www.efg.com

    How do I do this? I have to buy both URLS im assuming.
     
    El-Diablo, Jan 8, 2007 IP
  2. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #2
    yes, buy both URLs
    then either edit the .htaccess of abc.com, or just redirect it in your hosting service
     
    frankcow, Jan 8, 2007 IP
  3. sgugal

    sgugal Peon

    Messages:
    183
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use " Redirect abc.com efg.com" in .htaccess .
     
    sgugal, Jan 8, 2007 IP
  4. skelton1234

    skelton1234 Guest

    Messages:
    258
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    in order to use .htaccess your host needs mod rewrite enabled here is the .htaccess code for www.abc.com

    Just put that in the same directory where you would have put your index.html file
     
    skelton1234, Jan 8, 2007 IP
  5. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #5
    You should explain, that that will redirect any request to the same URL on another domain
     
    frankcow, Jan 9, 2007 IP
  6. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #6
    Are you on a apache server?
    Use .htaccess if yes.
     
    Richie_Ni, Jan 9, 2007 IP