New Posts
Welcome guest, is this your first visit?
  • Login:
Online Gaming News for Operators and Affiliates
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    PENQUIN
    Go F@@K Yourself
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,375
    Blog Entries
    1
    Feedback Score
    60 (100%)

    Default Use of Refresh header to redirect or to noindex a page.

    Not sure if its the right place but will ask anyways.

    What is the difference between the two codes below.


    1. <meta http-equiv="Refresh" content="0; url=http://www.example.com/" />

    2. <meta http-equiv="Refresh" content="0; url=http://www.example.com/">

    I see some sites with the extra space and / --- what is the purpose of it.


    Same goes for the following code to say - no index a page.

    1. <meta name="robots" content="noindex">

    2. <meta name="robots" content="noindex" /> <--------- what is the purpose of the forward slash.

  2. #2
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    The space serves no purpose, in the top example, the code is exactly the same.

    In the bottom example, the slash is there to validate the code. Off the top of my head xhtml transitional does not require a closing slash, but xhtml strict does. This does not apply to tags that have two parts -- such as <div> </div>, <span> </span>, and <p> </p> -- only to tags that need to "self close" such as <meta>, <br>, and <img>.

    xhtml transitional --> <img src = 'blah blah' >
    xhtml strict --> <img src = 'blah blah' />

    Basically, it just depends on what your doc type is

  3. #3
    PENQUIN
    Go F@@K Yourself
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,375
    Blog Entries
    1
    Feedback Score
    60 (100%)

    Default

    thanks Mike!! so essentially either one works fine - if you have in your code its not hurting anything.
    I see many sites with the slashes and many without. It appears not to affect anything.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant