Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-28-2007, 08:13 AM   PM User | #1
groog
New Coder

 
Join Date: Jun 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
groog is an unknown quantity at this point
I think this is an html thing.

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?
groog is offline   Reply With Quote
Old 06-28-2007, 08:32 AM   PM User | #2
Muckiem14
New Coder

 
Join Date: Jun 2007
Posts: 79
Thanks: 5
Thanked 0 Times in 0 Posts
Muckiem14 is an unknown quantity at this point
You are trying to redirect to another page. You can do this with the following code entered into the head:

Code:
<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
Muckiem14 is offline   Reply With Quote
Old 06-28-2007, 02:57 PM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,579
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 06-28-2007, 03:04 PM   PM User | #4
daemonkin
Regular Coder

 
Join Date: Jun 2007
Location: N. Ireland
Posts: 351
Thanks: 16
Thanked 4 Times in 4 Posts
daemonkin is on a distinguished road
The PHP Redirect is:

PHP Code:
<?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.
__________________
Daemonkin.
If this was helpful, please add to my reputation
Thousand Sons - Freelance Web Developer - ninetyonedegrees.com
daemonkin is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 05:49 PM.


Advertisement
Log in to turn off these ads.