pierrepercee wrote:I'm sorry, but the scenario mentioned is not the one I mentioned. In this particular case, which does not correspond to a marginal or exotic use, the system does not work properly, on a standard hosting with a fresh install.
I don't understand what your last reply means. I haven't found a situation where it doesn't work properly on standard hosting and a fresh install unless there is a server, cmsms install, or
news tag/setting problem.
pierrepercee wrote:
Code: Select all
http://monsite.fr/news/124/12/objet-essai-livre/d,tempobjets.html
Code: Select all
http://monsite.fr/news/124/14/objet-essai-livre.html
The item number is the right (124 passed as a parameter in the URL), the page template associated to this
news changes (here 14 instead of 12).
The fact that there is a URL with '12' and another with '14' indicates that your
news tags or
news settings are not configured correctly because those are the ID #s of the pages being selected as the article's landing page.
So, somewhere, you have a page with a
news tag that wants to open the article on the page alias with content_id 12 and another link somewhere that wants the article to open in the page with content_id 14.
This is why Google is indexing different pages than you expect.
Look at the list of content pages in your Admin. Hover over each edit page link and then look at the content_id in the URL. Then, look at the pages for content_id 12 and 14 -- these are being assigned as detail pages, somewhere. Either in the
News module settings, or the
news module tag.
Compare that to your
news tags and
news settings to be sure you have the detail page aliases set up they way you want.
There have been situations where someone creates a page with an alias called "
news" and the
News module wants to use that page by default even though it is not being asked to do so. However, I think that was cleared up several version ago.
Another area to check is the "Routes" in the Site Maintenance screen.
Also, verify that mod_rewrite set up correctly on the server and set up correctly in the .htaccess file and config.php.
By the way, I don't recall seeing
news links like this in any of the sites I've built:
monsite.fr/
news/124/12/objet-essai-livre/d,tempobjets.html
since I started using CMSMS back in 2006 which seems like a red flag to me. But, perhaps I just never noticed...