Print Page | Close Window

How to add noindex, nofollow to Content Page??

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Search Engine Optimization
Forum Description: Talk about ways to optimize your ProductCart store for search engines
URL: https://forum.productcart.com/forum_posts.asp?TID=4502
Printed Date: 17-May-2024 at 11:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add noindex, nofollow to Content Page??
Posted By: CakeGal
Subject: How to add noindex, nofollow to Content Page??
Date Posted: 22-May-2011 at 12:12pm
Hi,

I've tried to find any reference to this in wiki and in the forum, but no luck.

I have a content page with an iframe to another site (mutual business agreement between our sites).

I don't want the search engines to index or follow anything on this page.

I cannot find a way to change the line of code below for this page:

<META NAME="Robots" CONTENT="index,follow">

I want it to be:

<META NAME="Robots" CONTENT="noindex,nofollow">

For content pages, ProductCart seems to only allow me to edit meta code for Title, Description, and Keywords.

Does anyone know how I can edit this code?

Thank you!



Replies:
Posted By: Brett
Date Posted: 22-May-2011 at 6:11pm
On your header.asp, you might want to put:


<%if Request.ServerVariables("HTTP_X_REWRITE_URL") = "the-url-of-your content-page"%>
<META NAME="Robots" CONTENT="noindex,nofollow">
<%else%>
<META NAME="Robots" CONTENT="index,follow">
<%end if%>

So you'll have to do some custom modifications on header.asp.


Posted By: CakeGal
Date Posted: 22-May-2011 at 6:18pm
Thanks for the reply.

If ProductCart does not ye include this page-specific feature--it definitely should in the future.


Posted By: Brett
Date Posted: 22-May-2011 at 6:21pm
Well obviously it doesn't, as I just told you you'd need to modify header.asp to get it done ;)

It wouldn't take long to integrate this into the back end, but you'd want to ask yourself what else you wanted to integrate into that, as it would be a waste of time to make the necessary modifications for JUST the robots tag. I'd rather see someone make a list of everything we'd like to control on a per-content-page basis, and integrate all of that at once to give full control over the meta tags (etc) on each page.


Posted By: CakeGal
Date Posted: 22-May-2011 at 6:25pm
"I'd rather see someone make a list of everything we'd like to control on a per-content-page basis, and integrate all of that at once to give full control over the meta tags (etc) on each page."

I second that!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net