Hotlink redirect

Discussion in 'HTML & Website Design' started by hasen, Mar 13, 2007.

  1. #1
    How do I make it so I can always load the main page if someone hotlinks?

    Thanks.
     
    hasen, Mar 13, 2007 IP
  2. metalstein

    metalstein Well-Known Member

    Messages:
    660
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #2
    you can use this meta tag for redirect page to any url

    <meta http-equiv="Refresh" content="1;URL=http://www.site.com/">

    1 is redirect second
    you can use 0 (instantly redirect)
     
    metalstein, Mar 13, 2007 IP
  3. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ok thanks but where exactly do I put it? I mean which page. If I put it in the code for the main index.inc.php it doesn't redirect if someone goes to the other index.php it won't redirect to the main page.

    What I want is that if someone comes to my website but not on the main home page then they would be forced to instantly redirect to there.

    Thanks.
     
    hasen, Mar 14, 2007 IP
  4. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #4
    within the

    <head>
    </head> section of your html document.
     
    bacanze, Mar 14, 2007 IP
  5. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #5
    within the

    <head>
    </head> section of your document.
     
    bacanze, Mar 14, 2007 IP
  6. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes I know where in the html. Hmm well it doesn't work anyway. People are going straight to my proxified pages from top sites and I want to redirect to the main page basically.
     
    hasen, Mar 14, 2007 IP
  7. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Can no one help? Maybe I'm not explaining it right. What I want is if someone comes to my site on anything other than www.mydomain.com then I want them to be redirected to www.mydomain.com

    So if they follow a link that goes to www.mydomain.com/anything then they get automatically redirected to www.mydomain.com
     
    hasen, Mar 14, 2007 IP
  8. downloadthenet

    downloadthenet Active Member

    Messages:
    497
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #8
    downloadthenet, Mar 14, 2007 IP