![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro
|
Web redirection if not from specific URL?
Ok I have several different websites, what I want to do is if say someone goes to www.mysite.com and they did not come from www.mysitelinks.com then they will be redirected to www.mysitelinks.com which will contain links to all my sites, therefore I can still have an index at each site but unless they come from my main site with all the links they will be redirected to the site which contains the links which they can then continue from there.. Is that in anyway possible?
|
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
|
Re: Web redirection if not from specific URL?
Hmm trying to understand: Do you just need a simple redirect?
I have the following redirect html on some of my pages: <META HTTP-EQUIV="REFRESH" CONTENT="3;URL=http://www.techsupportforum.com"> Basically after someone gets to the page they are shortly redirected to the webpage of your choice.
__________________
~ RevHavoc ~ Universal PC Technician / Design Pro |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro
|
Re: Web redirection if not from specific URL?
That is kind of what I am talking about, but I already know how to redirect someone like that.. What I mean is, say you just came to www.techsupportforum.com from a search you just did on google, now because your coming from google it should show that as your referer correct? Now since your referer is google and not say www.pixelRus.com it will redirect you to another site of my choice.. does that make sense?
|
|
|
|
|
|
#4 (permalink) |
|
TSF Enthusiast
Join Date: Nov 2004
Posts: 555
OS: Windows XP Pro & Windows Vista Ultimate browsing the web with FF, Opera, Safari and IE.
|
Re: Web redirection if not from specific URL?
@ Iomega0318: I've read your posts 4 times and I still do not know what you want. Perhaps try describing it another way?
__________________
KoosHopeloos, straight to you from .nl via the world wide web! ![]() |
|
|
|
|
|
#5 (permalink) |
|
Retired
|
Re: Web redirection if not from specific URL?
If your web server is capable of PHP, you can do this:
Create this file and name it "ref_check.php": PHP Code:
PHP Code:
The first script is setting what to look for to the variable "site". Do not add http or .com or anything to it, just your domain name. Next it is setting the users referer to the variable "ref". Next it is checking the users referer for any signs of your sites domain name. If it doesn't find your sites domain name somewhere within the referer, then it redirects them to http://mysitelinks.com. The second script needs to be placed at the very top of the each page you wish to check the visitor. It needs to be the absolute first thing the web server sees or else the redirect won't work and it will display an error. Happy webbing
__________________
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro
|
Re: Web redirection if not from specific URL?
Awesome that is what I am looking for!
I found some scripts for redirecting to a different paged based on what referer they came from but what you just posted sounds more like what I want to do! I will try it out later and let you know how things go.. |
|
|
|
![]() |
| Thread Tools | |
|
|