Duplicate content? My page exists both with nodeId and normal .aspx extension
Hi there
On a clients site i can see that Google indexes the nodeId of a given page, but also (in some cases) the normal url (mysite.com/this-is-a-page.aspx).
I'd like that Google indexed the site by "normal" url, as we are implementing SEO in these names.
Is there any way to stop the indexing of the node ids? If not, is it causing duplicate content issues? I can't really find anything useful on this subject in the forums :/
Here's the XSLT is used to run through the articles on the frontpage. I wonder if that has anything to do with the IDs getting indexed:
There must be some html in your site that points to the nodeId's instead of the niceUrl. I would recommend add a rule to your urlRewriting.config that catches 4 digits(.aspx) and redirect them a proper 404 page.
Duplicate content? My page exists both with nodeId and normal .aspx extension
Hi there
On a clients site i can see that Google indexes the nodeId of a given page, but also (in some cases) the normal url (mysite.com/this-is-a-page.aspx).
I'd like that Google indexed the site by "normal" url, as we are implementing SEO in these names.
Is there any way to stop the indexing of the node ids? If not, is it causing duplicate content issues? I can't really find anything useful on this subject in the forums :/
Here's the XSLT is used to run through the articles on the frontpage. I wonder if that has anything to do with the IDs getting indexed:
There must be some html in your site that points to the nodeId's instead of the niceUrl. I would recommend add a rule to your urlRewriting.config that catches 4 digits(.aspx) and redirect them a proper 404 page.
Hi Sebastiaan
Well, in the xslt it points both to the niceUrl (Niceurl part ) and nodeId:
Would that be it? It seems it's only the Articles on the site has this issue, so i guess that could be a valid reason :/
Besides that, are you able to show an example of how to redirect with the 4 digit rule it sounds like something i could use in other projects.
Your help is much appreciated!
Yes, that does seem to be your problem, simply change it to:
Hi Sebastiaan
Cool - Thanks.
I made a little when/otherwise workaround as the link only needs to be there around the image in case mdLink contains a value.
Have a nice evening.
is working on a reply...