1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

url redirect script?

Discussion in 'General Scripting Chat' started by MMAComments, Mar 26, 2012.

  1. MMAComments

    MMAComments Registered Member

    Joined:
    Nov 16, 2009
    Messages:
    56
    Likes Received:
    1
    Hello, I'm looking for a script to redirect to a said url via my website. It's hard for me to explain so I will just give you an example


    site/url-created-by-script

    I want the above url to redirect to a site of my own.

    I guess they only example I could give would be a top site script where the script creates another URL.

    I'm sorry for the horrible example. It's hard for me to put in to words without knowing what it's called.
     
  2. danielgm55

    danielgm55 Regular Member

    Joined:
    Apr 3, 2011
    Messages:
    253
    Likes Received:
    57
    Location:
    Inside your computer
    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
     
    • Thanks Thanks x 1
  3. aftershock2020

    aftershock2020 Senior Member

    Joined:
    Oct 19, 2007
    Messages:
    981
    Likes Received:
    477
    You don't need a script for that.

    You simply build a front-end page, then have it redirect to the desired " site/subpage " with a php redirect function or a 301 error redirect.
     
    • Thanks Thanks x 1
  4. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,272
    Are you looking for something like this?

    http://yoursite.com/leave.php?url=ww.yourotherwebsite.com

    is that what you need?
     
    • Thanks Thanks x 1
  5. Hunwarrior

    Hunwarrior Jr. VIP Jr. VIP Premium Member

    Joined:
    May 12, 2010
    Messages:
    1,027
    Likes Received:
    859
    check my signature, it might be what you are looking for, thou it might be not :D
     
    • Thanks Thanks x 1
  6. MMAComments

    MMAComments Registered Member

    Joined:
    Nov 16, 2009
    Messages:
    56
    Likes Received:
    1
    I'm not looking for a meta tag redirect, thanks though.

    I want the script to make a URL on my domain kind of like a topsite.

    something along those lines but I don't want the URL where it's going to be shown to the viewer or mouseover.

    No not really. I want all redirect to be from my domain.


    Thank you all for your comments.
     
  7. MMAComments

    MMAComments Registered Member

    Joined:
    Nov 16, 2009
    Messages:
    56
    Likes Received:
    1
    OK, may be I'm looking for a link managing script. Where I can designate the exit link and the script creates a link with my domain in it kind of like below.

    mywebsite/freelink/freelink.php?User=1
     
  8. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,272

    So when the link says user=1, where do you want to redirect to? the url needs to be fetched from the database?