Forum Moderators: open

Message Too Old, No Replies

Correct way to noindex, nofollow a subpage

         

driller41

6:55 pm on Oct 24, 2008 (gmt 0)

10+ Year Member



Hi, is this the correct html syntax to noindex, nofollow an internal page:-

<a href="example.html" rel="nofollow","noindex">Example</a>

Or dont I need both tags?

tedster

7:17 pm on Oct 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The rel attribute that search engines cooked up for anchor tags only takes a "nofollow" value. Then the target page is not indexed at all (at least not via that link).

If you really want the target page not be indexed, you should use the robots meta tag on the page itself, not the links that point to it. Somelone else could get it into the index with their own link otherwise.

Note, as a general rule with attributes you don't quote each value separately. Instead you put just one set of quotes around the full comma-separated list.

g1smd

7:33 pm on Oct 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Attributes always take the form attribute="value"