Support » Fixing WordPress » Shortlink generating wrong urls

  • I was running our sitemap creator tool and the results showed dozens of pages like this:
    http://www.mywebsite.com/?p=1247
    where the number was always different.

    Since we don’t have our home page integrated to WP, all these URLs pointed to the home page. This is much more than duplicating content by linking our home page from hundred of different URLs!

    It would be different if this piece of code:
    <link rel=’shortlink’ href=’http://www.mywebsite.com/?p=1247&#8242; />
    would point to where the actual WP installation is: http://www.mywebsite.com/cms/?p=1247.

    Since I don’t know how to correct the link rel URL, I wonder if it is possible to remove this piece of code. I checked the page.php and it is not there. Neither at header.php

    Does anybody know how can I just remove this code from the rendered pages?

  • The topic ‘Shortlink generating wrong urls’ is closed to new replies.