Page 1 of 1

News module + mod_rewrite = Duplicate content issues :((

Posted: Tue Oct 05, 2010 5:27 pm
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.

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

Posted: Tue Oct 05, 2010 5:37 pm
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  :)

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

Posted: Wed Oct 06, 2010 6:44 pm
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...

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

Posted: Wed Sep 05, 2012 12:24 pm
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?

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

Posted: Wed Sep 05, 2012 12:49 pm
by Jean le Chauve

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

Posted: Wed Sep 05, 2012 5:41 pm
by Rolf
Set default detailpage in News module settings

Rolf