Quote:
Originally Posted by markwhoo
not a problem, I was just hoping to be able to do it via meta tag to keep the robots.txt as clean as possible, lol.
I have a large robots file as it is, so was hoping to be able to do it other way, but it is fine.
whats a few more line in there right? lol
|
The nice thing about having it all in one place is that you won't have any conflicts between the two, or in the future forget that you input code into a .tpl and can't figure out why the page isn't being indexed. If you want to do it in your meta though, this code in skin1/meta.tpl should do the trick:
Quote:
{if $page_data.pageid eq "X"}
<meta name="robots" content="noindex, nofollow">
{/if}
|
Multiple pages:
Quote:
{if $page_data.pageid eq "X" OR $page_data.pageid eq "XX"}
<meta name="robots" content="noindex, nofollow">
{/if}
|