Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
pezzer1
Newbie
Newbie



Joined: Nov 26, 2007
Posts: 22

PostPosted: Wed Feb 06, 2008 11:31 am Reply with quote

This might be best asked in the ravennuke forum, but I ask here because I believe my "issue" lies in using shortlinks (rather static html pages.)

My Ravennuke content (with shortlinks enabled) has the "Printer Friendly" link enabled, but google is indexing my printer pages. If one googles a search term, it's possible to go straight to the printer friendly page, which I don't want as they don't have a way to navigate through the site, which is the whole intention.

My first thought was to add "Disallow: /modules/news/print.php" to my robots.txt file, but the fact that's it has already generated a static html page prior to crawling makes me think that won't work.

So, after all that - my question is - is there a way to prevent google (and other legit search engines) from crawling the print friendly pages?
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Feb 06, 2008 8:34 pm Reply with quote

Actually, this really is not a ShortLinks issue. There are two ways to handle this, one is to change the links to the print page to have a "nofollow" attribute. However, I prefer the following in this case as it should work coming from anywhere:

=== OPEN FILE ===

modules/News/print.php

=== ADD ===

To the PrintPage function code the following meta tag between the <head> tag and the <body> tag:

Code:

<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />


or you could use:

Code:

<meta name="ROBOTS" content="NONE" />

=== DONE ===

This should keep the search engines from indexing these pages as well as from following any links on these pages.
 
View user's profile Send private message Visit poster's website
pezzer1
Newbie
Newbie



Joined: Nov 26, 2007
Posts: 22

PostPosted: Thu Feb 07, 2008 11:18 am Reply with quote

That's exactly what I needed. Never dawned on me to place it within the html output of the page.

Thanks!
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Feb 07, 2008 11:04 pm Reply with quote

Hey, glad that worked!

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Fri Feb 08, 2008 6:14 pm Reply with quote

Wow, good one!
This has me thinking about "substantially duplicated content" all over again.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch