...

View Full Version : I think this is an html thing.



groog
06-28-2007, 08:13 AM
I can't remember what it's called so bear with me.

How do you make a page so when you enter the page it sends you to another page?

Muckiem14
06-28-2007, 08:32 AM
You are trying to redirect to another page. You can do this with the following code entered into the head:


<meta http-equiv="Refresh" content="5; url=NewUrl.html">

The content is how many seconds it takes to redirect and url is the page you want to send the user to. Hope this helps.

Mike

VIPStephan
06-28-2007, 02:57 PM
It should be noted that meta refresh is kind of a bad practice and can have negative impact on search engine ranking as there has been a lot of misuse of that feature in the past. A better way would be a 301 redirect via a server side script (e.g. PHP) or .htaccess. Use these keywords for a search and you’ll get a lot of results that might help you.

daemonkin
06-28-2007, 03:04 PM
The PHP Redirect is:


<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: /NEW_LOCATION TO REDIRECT_TO" );
?>

This should be at the top of the page and nothing else should be echoed out by the page or PHP scripts otherwise you will get an error on the page.

D.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum