Canonical links and instance number in urls
Canonical links and instance number in urls
- Subject: Canonical links and instance number in urls
- From: John Pollard <email@hidden>
- Date: Thu, 27 Nov 2014 10:46:31 +0000
Hi List,
We have a possible issue on our web sites with google thinking we have duplicate content because the following reach the same page:
..../5/wa/....
..../wa/...
I am not quite sure where google gets the links containing instance numbers, but we would be ok with it if we could include a canonical link instruction in the page head, to give the correct url.
I don't want to include the canonical link in the head if the url is correct already, in the second case above. Perhaps this is allowed but it doesn't seem very nice, I would prefer only to give such a link when I know the url seen in the browser isn't the canonical one.
But I am struggling to know within the application what actually was the original url seen in the user's browser.
When I log out request.uri() I *always* see the instance number in the url, e.g. .../1/wa/... (for either of the above examples) which is ok, but it means I can't tell whether the real original url seen in the browser is the canonical form or not (the one without the instance number).
Help!
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden