URL Name and Redirect Help

Discussion in 'Programming' started by biztrendz, Mar 15, 2011.

  1. #1
    Hi guys,

    I need help from professional web developers regarding an issue which is bothering me for days. Here's the problem:

    How can I redirect a URL to an external website by having a link name of whatever I like?

    Please have a look at this site: http://webhostinggeeks.com/ (not mine,hehehe)

    In the above website, just click any top ten hosting websites under section "Web Hosting Provider". But before you click, check the URL (on mouseover), that it is pointing within the domain (http://webhostinggeeks.com/blahblah.html), but when you click it, it redirects to an external website.

    I need the same thing for my site.

    I need to add this URL: www.websitename.com/goto-this-site.html within THIS LINK and when it is clicked, it will redirect to an external website(www.anotherwebsite.com).

    So how can I do it? Is this a simple redirect or does it involve anything else?

    Please help me out guys...

    Thanks
     
    biztrendz, Mar 15, 2011 IP
  2. artus.systems

    artus.systems Well-Known Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #2
    <a rel="nofollow" target="_blank" title="web host blah blah bhal" href="http:// xyz . com ">Xyz web hosting company</a>
     
    artus.systems, Mar 17, 2011 IP
  3. biztrendz

    biztrendz Member

    Messages:
    591
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    33
    #3
    Mate, that's s simple hyperlink tag. Please read my post carefully as I want to know something advance than what you've posted.

    Thanks.
     
    biztrendz, Mar 17, 2011 IP
  4. hyutars

    hyutars Member

    Messages:
    190
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    The blahblah.html using meta REFRESH.
    If you're using PHP, you can use HEADER function, please google about it
    [​IMG]

    Ah, and if you dont want crawler follow those link, you should include META ROBOT nofollow, noindex too. It's two step external linking technique [​IMG]
     
    hyutars, Mar 18, 2011 IP
  5. biztrendz

    biztrendz Member

    Messages:
    591
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    33
    #5

    Thanks for the response mate, but I really have no idea what you are trying to say here.

    I want to "name" my URLs like this:
    www.website.com/externalwebsite1.html
    www.website.com/externalwebsite2.html).

    And when someone clicks, they will be redirected to external websites like this:

    www.otherwebsite.com
    www.externalwebsite.com

    Hope it's clear.

    Thanks,
     
    biztrendz, Mar 18, 2011 IP
  6. hyutars

    hyutars Member

    Messages:
    190
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #6
    You want to do it dynamic or manualy (manual create those html page)? [​IMG]

    If it's manual: [​IMG]
    Create externalwebsite1.html on your root folder, then use this code:

     
    hyutars, Mar 19, 2011 IP