Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Redirect referral link

Reply
Thread Tools

Redirect referral link

 
 
Roland
Guest
Posts: n/a
 
      02-24-2004
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.


 
Reply With Quote
 
 
 
 
Ivo
Guest
Posts: n/a
 
      02-24-2004
"Roland" <(E-Mail Removed)> wrote in message
news:403b4bec$0$41753$(E-Mail Removed) i.nl...
> 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.
>


Sure, just see what value is stored in the variable
window.document.referrer. For example:
if (document.referrer.indexOf('my2domain')>-1)
location.replace('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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
semi-dedicated ASP.NET hosting with Referral plan? Mark ASP .Net 0 08-14-2005 09:04 PM
COVAD Referral Program! Curt_C [MVP] ASP .Net 5 03-02-2005 09:31 PM
Using FormsAuthentication - how to override default referral Phil Certain ASP .Net 3 01-18-2005 06:19 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM
graphic designer referral RickN ASP .Net 0 11-08-2003 10:25 AM



Advertisments