News module + mod_rewrite = Duplicate content issues :((

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Rkz
Forum Members
Forum Members
Posts: 36
Joined: Tue Feb 12, 2008 8:30 pm

News module + mod_rewrite = Duplicate content issues :((

Post by Rkz »

If you have {news} in sidebar, with every different web page you get different URL, also how to ger URL lower case only.

Look at google webmaster tools info:
{sitename} - video - Jogos pratimai pradedantiesiems
/tekstas/103/51/Jogos-pratimai-pradedantiesiems/
/tekstas/103/54/Jogos-pratimai-pradedantiesiems/
/tekstas/103/57/Jogos-pratimai-pradedantiesiems/
/tekstas/103/58/Jogos-pratimai-pradedantiesiems/
/tekstas/90/51/Jogos-pratimai-pradedantiesiems/
/tekstas/90/51/jogos-pratimai-pradedantiesiems/
/tekstas/90/54/Jogos-pratimai-pradedantiesiems/
/tekstas/90/58/Jogos-pratimai-pradedantiesiems/
/tekstas/90/58/jogos-pratimai-pradedantiesiems/
/tekstas/90/59/Jogos-pratimai-pradedantiesiems/
/tekstas/90/59/jogos-pratimai-pradedantiesiems/
/tekstas/90/66/Jogos-pratimai-pradedantiesiems/

Seems that googlebot finds new URL everytime its visiting my webpage :(

I'd like to have only one permament URL /tekstas/103/51/jogos-pratimai-pradedantiesiems/

My CMSMS version is 1.6.6, but seems that this problem is on the new versions too.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: News module + mod_rewrite = Duplicate content issues :((

Post by Rolf »

Hi Rkz,

When you want to use lower case urls, you should change the templates with f.e.
{$entry->moreurl|lower}

Do you use the detailpage parameter in the news tag? I think the canonical code in the top of the template (if any) will filter the double urls...

Reg. Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News module + mod_rewrite = Duplicate content issues :((

Post by Dr.CSS »

When you use news in the template and don't use the detailpage= parameter clicking news will open it in the {content} of whatever page you are on hence the seeming duplicate content, one of those numbers, /51/, 54, 57, etc. is the page ID that is used in the return ID string so once you click News to read the detail and it is open in the pages {content} then it will return back to that page using the ID like page ID 58...

So in conclusion use the detailpage= parameter to open the detail view, like a page called News...
jackgittes
Forum Members
Forum Members
Posts: 23
Joined: Mon Sep 28, 2009 9:04 pm

Re: News module + mod_rewrite = Duplicate content issues :((

Post by jackgittes »

I am running into the same problem. I am accessing the news items in two ways:

1. One page that has the {news detailpage="news"} tag and shows all of the news items

2. Second I generate a list with categories: {news action="browsecat"} in the sidebar. When I click on one of the categories it shows me newsitems linked to that category. No problem there. But the URL for the detailview here differences from option 1. So I have two url's with the same content. Using the detailpage parameter like this: {news action="browsecat" detailpage="news"} gives an error.

Is there a way to solve this so that only one URL is used?
Jean le Chauve

Re: News module + mod_rewrite = Duplicate content issues :((

Post by Jean le Chauve »

User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: News module + mod_rewrite = Duplicate content issues :((

Post by Rolf »

Set default detailpage in News module settings

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”