Is this canonical issue?
-
WP site has automated canonical on domain.com/ by Yoast plugin but there is URL (/?page=kontaktine-forma) where same domaim.com/ canonical tag was put on. I made 301 redirect to main page. Is this a good practice?
-
The canonical tag should be used to redirect Google bots to the original page without affecting actual site users. If your /?page=kontaktine-forma is a duplicate of your homepage then yes, you should have the canonical link pointing to the homepage - if this is the case, you don't necessarily need to do a 301 redirect, unless you dont want your users to visit the page.
In short, you don't need to do both a canonical link AND a 301 redirect, either one should be fine - 301 redirects should be used more for user experience, so bear that in mind.
Hope that helps.
-
Thanks, my question was answered.
But there is one more thing I would like to know.
- How to edit canonical tags in WP?
This WP site has basically no backlinks but in future website optimization I want to know it because how come Yoast plugin set canonical main page with a trailing slash then WP default site domain set without a slash and permalink structure has no trailing slash too?
I know that then backlink uses URL without slash and URLS and main page on the site use trailing slash then you leak some link juice.
Thanks
-
No problem.
You can edit the canonical links through Yoast's SEO plugin, just go into the page/post and then navigate to the 'advanced' tab within Yoast - you can then set the custom canonical link.
Regarding your links that point to you with no trailing slash, WP automatically redirects any URLs without a trailing slash to one with one - this will then flow the PageRank into the correct URL, so don't worry.