Referer Redirect

This is a discussion on "Referer Redirect" within the JavaScript Forum section. This forum, and the thread "Referer Redirect are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 23rd, 2006, 10:24
Junior Member
Join Date: Jan 2006
Location: Brighton
Age: 24
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Referer Redirect

Hi guys.

I need some code for a page I have. It needs to basically do the following...

If came from 'ffboxes.htm' then
goto 'coolboxes.htm'
else
stay where you are.


lol obviously I'm no good at javascript. But if someone could help me out then that would be great,

Thanks alot!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 23rd, 2006, 11:25
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Referer Redirect

Why not just have the link of ffboxes.htm have a link to coolboxes.htm in the first place?
I'm not sure if there is a way to do this with javascript, but it would be better to do it with a server side script such as php or asp.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 23rd, 2006, 12:07
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: Referer Redirect

In complete agreement with phoenix..... better handled server side.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 23rd, 2006, 14:11
Junior Member
Join Date: Jan 2006
Location: Brighton
Age: 24
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Referer Redirect

Quote:
Originally Posted by Pheonix
Why not just have the link of ffboxes.htm have a link to coolboxes.htm in the first place?
I'm not sure if there is a way to do this with javascript, but it would be better to do it with a server side script such as php or asp.
Can't use PHP as I need this code to be in 404.shtml file. Google has still got a page of mine called ffboxes.htm which is now called coolboxes.htm, when people click on the google link to ffboxes.htm it takes them to my 404 page. But if they come from ffboxes.htm I want it to take them to coolboxes.htm, But i still need the 404 page for people coming from other pages that do not exist anymore.

Renaming the page is not an option. This has to be done in Javascript or any other language that can be used in an SHTML file. I know how to do it in PHP but custom 404 pages cannot be .php

Thanks for any help and sorry for the long explanation lol.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
referer, redirect

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect nate2099 Website Planning 3 Apr 8th, 2008 10:20
301 redirect in SEO geraYY Search Engine Optimization (SEO) 26 Feb 24th, 2008 20:33
Is there a way to redirect... dudester123 JavaScript Forum 3 Sep 11th, 2006 17:24
php redirect saltedm8 PHP Forum 16 Jun 20th, 2006 19:30
track referer and pass value to asp send email page mccannio Classic ASP 3 Dec 6th, 2005 12:49


All times are GMT. The time now is 12:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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