avoid full News urls appearing in search engines

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
echobrin
Forum Members
Forum Members
Posts: 54
Joined: Sat May 29, 2010 6:03 pm

avoid full News urls appearing in search engines

Post by echobrin »

We're using the URL (slug) field to enter URLs for all of our News articles, but sometimes the default URL for an article still shows up in Google search results. Is there a way to prevent this?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1788
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: avoid full News urls appearing in search engines

Post by DIGI3 »

Ideally you'd want to find where the links are being indexed from and see if you can change those to make sure they use the slug url. A bit of detective work might be needed.

As a less ideal workaround, you might be able to block them in your robots.txt file if the path is unique to the system urls, e.g. /news/, and isn't part of the slug urls. Another option is you could also do a check in your news detail template to compare the url visited with the slug url, and if they don't match add a noindex tag.
Not getting the answer you need? CMSMS support options
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: avoid full News urls appearing in search engines

Post by Rolf »

Use (install) Canonical URL's, that is what they are for to prevent double indexed URLs
That and more is described in this blog:
https://cmscanbesimple.org/blog/base-cm ... d-metatags

If you want to go a step further you can also use this one:
https://cmscanbesimple.org/blog/redirec ... onical-url
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
echobrin
Forum Members
Forum Members
Posts: 54
Joined: Sat May 29, 2010 6:03 pm

Re: avoid full News urls appearing in search engines

Post by echobrin »

Thank you both for your replies. It looks like I have some work to do. I do have canonical urls set up but it must not be quite right. I'll take a look at the links provided.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: avoid full News urls appearing in search engines

Post by Rolf »

Google isn't flawless either, so........
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”