Help - Search - Members - Calendar
Full Version: Redirecting Script
Invision Power Services > Community Forums > Community Web Design and Coding
superbobbes
i am searching for a script wich redirectet like ipbeyond.
Venom79
Just use the meta refresh

CODE
<META http-equiv="refresh" content="5;URL=http://yoursite.com">


the content="5 is how many seconds it will take to redirect

and yoursite.com to where you want it to redirect
Scott H.
If possible try and use the meta refresh only as a last resort. If you have PHP support, you can use:
CODE
<?php
header("Location: http://www.somewhere.com/");
?>
to redirect.

If you have Apache, you can put this into your .htaccess to redirect users:
CODE
Redirect /somewhere.html http://www.example.com/newpage.html


Both these methods help ensure that spiders are properly redirected and also made sure that the "Back" button works properly. Here's a good article on it smile.gif
JeremyM
CODE
<html>
<head>
<meta http-equiv='refresh' content='0; url=http://www.ipsbeyond.com/forums/index.php'>
</head>
<body>
You will now be redirected...
</body>
</html>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.