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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 05-08-2007, 12:36 AM   #1 (permalink)
Registered User
 
Iomega0318's Avatar
 
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro

My System

Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
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?
Iomega0318 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 05-08-2007, 12:43 AM   #2 (permalink)
Registered User
 
RevHavoc's Avatar
 
Join Date: May 2007
Location: 127.0.0.1 ;-)
Posts: 142
OS: XP Pro IT

My System

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
RevHavoc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-08-2007, 12:51 AM   #3 (permalink)
Registered User
 
Iomega0318's Avatar
 
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro

My System

Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
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?
Iomega0318 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-08-2007, 02:46 AM   #4 (permalink)
TSF Enthusiast
 
KoosHopeloos's Avatar
 
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!

KoosHopeloos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-08-2007, 07:40 AM   #5 (permalink)
Retired
 
gamerman0203's Avatar
 
Join Date: Oct 2005
Location: Grand Rapids, MI
Posts: 2,144
OS: XP MCE, Ubuntu Gutsy

My System

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

   $site 
"mysitelinks";
   
$ref $_SERVER['HTTP_REFERER'];
   if(!
eregi($site$ref){
      
header("Location: http://www.mysitelinks.com");
   }

?>
Now include this script at the VERY TOP of every page you want the visitor to be checked:

PHP Code:

<?php include "ref_check.php" ?>
Explanation:

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
gamerman0203 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-08-2007, 12:56 PM   #6 (permalink)
Registered User
 
Iomega0318's Avatar
 
Join Date: Mar 2007
Location: Dirt City, Texas
Posts: 176
OS: Windows XP SP2, Windows Vista, Ubuntu, Windows 2000 Pro

My System

Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
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..
Iomega0318 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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 Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 08:01 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85