473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.
Jul 20 '05 #1
1 3920
Ivo
"Roland" <rs*****@tiscali.nl> wrote in message
news:40**********************@dreader2.news.tiscal 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
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: J.A. | last post by:
Hi, I'm new with PHP I want to create a page to redirect links, for example: http://www.php.net/link.php?link_id=2005 ....and be redirect to a URL, from my databse (MySQL), like it follow:...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
1
by: COVAD | last post by:
To Whom It May Concern: Good morning. I am Seann P. Courtney with Covad Communications and the reason that I am contacting you is because I am looking for a referral partner to do some business...
4
by: Max | last post by:
Hello, here a user control named aff.ascx : (this control is used to see the contains of a link) <%@ Control Language="VB" %> <script runat="server"> ' Insert user control code here Public...
1
by: george | last post by:
How to do debug in visual studio a connection that comes in from a url referral? I cannot get visual studio to "boot" on the referral. IIS just runs the ASP directly.
1
by: stevebremermn | last post by:
I'm working on setting up some affiliate links on a site of mine and I haven't been able to get a redirect to work. The original affiliate link looks like this: ...
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
8
by: widevision7 | last post by:
I have a web site where people are directed via links from 12 different web sites. For example, if the user was on www.chevy.com, and they clicked on a link to win a trip to an awards show, they...
18
by: Paul Lautman | last post by:
JRough wrote: What do you mean by "redirect the output to Excel"??? Excel isn't a location, it's a spreadsheet program that some (but not all users) will have on their machine. BTW, Location:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.