I have a weird anomaly with one project. Where Google is indexing sites like:
While it should do it like:
I just recently added canonical tags, so ultimately it should use those right?
And I think the problem is also in my page display script. So it doesn't give 404, if the format isn't correct. However.. How on earth does Google even get to those links?
Is it because of
<a href="/post/1-foobar.html">Example</a>? And also I had baseurl set in the head. And it somehow, thinks its a directory and goes on and on.
I have set all my links
<a href="http://example.com/post/1-foobar.html">Example</a> now. But I really don't see the point, its just an extra bytes to load..