Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Is there script for this? (redirecting)
Old 02-15-2004, 04:10 AM Is there script for this? (redirecting)
Junior Talker

Posts: 3
Trades: 0
Is there script so website redirects user to another website when user goes to that website? Just like in www.runenite.tk?
Deathcult is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-15-2004, 07:47 PM
OnlyPhp.Com's Avatar
Extreme Talker

Posts: 177
Location: World
Trades: 0
Is this what you're looking for ?
http://www.onlyphp.com/onlyredirection.php
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
OnlyPhp.Com is offline
Reply With Quote
View Public Profile Visit OnlyPhp.Com's homepage!
 
Old 02-15-2004, 08:18 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
PHP
PHP Code:
<?php

header
("Location: http://www.newlocation.com");

?>
JavaScript
Code:
<body onload="window.location='http://www.newlocation.com'">
Javascript w/ delay
Code:
<body onload="setTimeout('window.location=\\'http://www.newlocation.com\\'', 5000);">
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE


Last edited by Christopher; 02-15-2004 at 08:21 PM..
Christopher is offline
Reply With Quote
View Public Profile
 
Old 02-17-2004, 06:46 AM
scottfree's Avatar
Extreme Talker

Posts: 234
Location: Hamburg
Trades: 0
HTML:
<META HTTP-EQUIV="refresh" content="3;URL=http://www.yourdomain.com/page.html">
the number 3 indicates the delay time.
__________________
I think, therefore I am..... I think.
scottfree is offline
Reply With Quote
View Public Profile Visit scottfree's homepage!
 
Old 02-17-2004, 11:24 AM
Skilled Talker

Posts: 72
Trades: 0
All of the above are very good suggestions but will get you disqualified by search engines. try the following.

Include this within your page where you want the redirect code to appear.
<script src="newmenu.js" language="JavaScript"></script>

Then create a file called newmenu.js within the same directory of your website and include the redirect code. I use the following code:

<!--
if (top.location == location)
{top.location = "http://www.youwillgohere.com";
}


Only a java enabled browser will include the redirect code.
__________________
.:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
(such as a birthday)
Please login or register to view this content. Registration is FREE
Florist Comparison Shopping :.
alansmith is offline
Reply With Quote
View Public Profile
 
Old 02-24-2004, 12:15 PM
Junior Talker

Posts: 3
Trades: 0
Yes, thank you
Deathcult is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there script for this? (redirecting)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45846 seconds with 12 queries