Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    New Coder
    Join Date
    Jun 2007
    Posts
    79
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Jun 2007
    Location
    N. Ireland
    Posts
    351
    Thanks
    16
    Thanked 4 Times in 4 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •