Canonicalize Dynamic URL
-
I was wondering how can you noindex or canonicalize URLS which are not editable via the WordPress dashboard.
An example would be
https://example.co.uk/shop/?orderby=date
and
Creates a dupe title issue, as a result it would be great if the former of the two urls could have a canonical set to go back to the shop main page and the same for any other orderby=XXXX
I guess the same may apply for searches? as they too contain dynamic url characters like ? and & to form a query.
This example is a WooCommerce shop page where the user has chosen a different order by option which dynamically changes the URL as a result this appears in our moz.com account as a duplicate title issue.
Is this possible at all? I thought about adding to robots.txt via the advanced tools in Yoast but not sure there is a meta tag that allows me to also target the source.
<link rel=”canonical” href=”https://www.example.co.uk/shop/”/>
Is there a way to reference the source url in the above tag?
- The topic ‘Canonicalize Dynamic URL’ is closed to new replies.