Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Canonical creates 404 error

$
0
0

Replies: 0

Hi there.

Yoast seems to generate incorrect rel=”canonical” for sub-pages that are having characters like a “+” in the URL.

For example, the URL generated might look like as follows initially: http://www.[DOMAIN].com/keyword1+keyword2

Yoast generates the following link tags:

<link rel=”canonical” href=”http://www.[DOMAIN].com/keyword1%20keyword2&#8243; />

In fact this page does not exist and therefore it creates a 404 error for the search engine. Once I deactivate Yoast entirely the canonical tag is gone which indicates to me that Yoast is producing this side-effect.

Can you guys help with that? Help is very appreciated.
Thx!


Viewing all articles
Browse latest Browse all 59525

Trending Articles