Redirect referral link

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roland

    Redirect referral link

    Hello,

    Is it possible to transfer a redirected link to a sub page on my website?

    Example:

    www.mydomain.com -----> Page with webhosting

    www.my2domain.com ----> directly points to www.mydomain.com

    When people come from my2domain.com the must be directly reffered to a
    subpage instead of the standard homepage.

    Note: The won't come there by pressing a link but are directly being
    directed by a domainpointer.

    Greetz Roland.


  • Ivo

    #2
    Re: Redirect referral link

    "Roland" <rschraa@tiscal i.nl> wrote in message
    news:403b4bec$0 $41753$5fc3050@ dreader2.news.t iscali.nl...[color=blue]
    > Hello,
    >
    > Is it possible to transfer a redirected link to a sub page on my website?
    >
    > Example:
    >
    > www.mydomain.com -----> Page with webhosting
    >
    > www.my2domain.com ----> directly points to www.mydomain.com
    >
    > When people come from my2domain.com the must be directly reffered to a
    > subpage instead of the standard homepage.
    >
    > Note: The won't come there by pressing a link but are directly being
    > directed by a domainpointer.
    >
    > Greetz Roland.
    >[/color]

    Sure, just see what value is stored in the variable
    window.document .referrer. For example:
    if (document.refer rer.indexOf('my 2domain')>-1)
    location.replac e('subpage.htm' );
    If you can, you should do this on the serverside to minimize unnecessary
    webtraffic. Your users don't need to notice they are being rerouted.
    Also, the referer variable may be empty if they surf in from a javascripted
    link, or from their Favorites menu.
    HTH
    Ivo


    Comment

    Working...