Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Redirection page for a website?

Thread Tools
 
Search this Thread
 
Old 23 September 2002, 09:51 AM
  #1  
Andy Tang
Scooby Regular
Thread Starter
iTrader: (3)
 
Andy Tang's Avatar
 
Join Date: Dec 1999
Location: UK
Posts: 13,274
Likes: 0
Received 0 Likes on 0 Posts
Question

I've never done this before, but how do you create a redirection page?

Company has two domain names, and I want one that isn't used (no website, only emails) to redirect to the one that is.

Cheers
Andy
Old 23 September 2002, 10:12 AM
  #2  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

quick and dirty method below ...



<HTML>
<!--this is here to make the file greater than 512 bytes .****************************************
************************************************** ***********************************************
************************************************** ***********************************************
************************************************** ***********************************************
************************************************** ***********************************************
-->
<HEAD>
<SCRIPT language="JavaScript1.1">
<!--
location.replace("http://www.somedomain/index.cfm");
//-->
</SCRIPT>
<NOSCRIPT>
<META http-equiv="Refresh" content="0; URL=http://www.somedomain.com/index.cfm">
</NOSCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
Old 23 September 2002, 10:22 AM
  #3  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

why does it need to be greater than 512 bytes ?
Old 23 September 2002, 10:46 AM
  #4  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

IE 5 will replace any server error messages with it's own default ones if the file is less than 512 bytes.

When we wrote this we called this page as an 'error page' within the netscape config.

Steve
Old 23 September 2002, 12:19 PM
  #5  
mark_h
Scooby Regular
 
mark_h's Avatar
 
Join Date: Mar 2001
Location: Just passing through...
Posts: 17,497
Likes: 0
Received 0 Likes on 0 Posts
Question

Wouldn't it be better to have a proper link in the BODY too ('Click here' sort of thing) in case the browser is ignoring the META ta?
Old 23 September 2002, 01:11 PM
  #6  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

if it would ignore the javascript and meta then yes, probably.

Can't see it realistically happening though - like I said it was quick & dirty.

Steve
Old 23 September 2002, 02:42 PM
  #7  
Andy Tang
Scooby Regular
Thread Starter
iTrader: (3)
 
Andy Tang's Avatar
 
Join Date: Dec 1999
Location: UK
Posts: 13,274
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Steve,

That was exactly what I was looking. Locally the code works a treat, I just need to get it up to the website and see what happens.

Thanks a lot!!

Andy

Trending Topics

Old 23 September 2002, 02:43 PM
  #8  
Andy Tang
Scooby Regular
Thread Starter
iTrader: (3)
 
Andy Tang's Avatar
 
Join Date: Dec 1999
Location: UK
Posts: 13,274
Likes: 0
Received 0 Likes on 0 Posts
Wink

PS - Quick and Dirty! Spot on!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Rbon91
ScoobyNet General
49
21 November 2018 03:23 PM
south_scoob
ScoobyNet General
22
03 October 2015 01:05 PM
LostUser
Non Scooby Related
11
29 September 2015 11:00 AM
jobegold@hotmail.co.uk
ScoobyNet General
2
27 September 2015 09:44 PM



Quick Reply: Redirection page for a website?



All times are GMT +1. The time now is 09:10 PM.