• funsail

    (@funsail)


    Where does shortlink come from?
    I have 2 sites in a network, using the same kinda stuff, but one generates this

    <link rel=’shortlink’ href=’https://mysite.com/?p=1334&#8242; />

    the other doesn’t. I don’t really want it, is it a setting somewhere?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Hello,

    This is a new functionality brought by WordPress 3.0. The application automatically adds this when you use URL shorteners. Actually, it’s good for your search optimisation, so I wouldn’t remove it if I were you.

    However, in case you want to remove this rel tag, add this line to your functions.php file:

    remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );

    Thread Starter funsail

    (@funsail)

    What is the benefit of this? I already use short slugs. I am told the ? Is bad for caching. Do you know why only 1 site generated it?

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    It shouldn’t have anything to do with that. Could you give me the exact link that is marked as shortening service incorrectly?

    Thread Starter funsail

    (@funsail)

    My site is already https://mysite.com/bost-name/
    the addition of ?p= benefits who?
    I don’t understand why 1 site has it and the other doesn’t

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Your website is correctly using the search engines friendly links. The shortlink rel specifies that even if this page is linked via https://mysite.com/?p=1334 it is the same URL and should be considered the same. This actually benefits the SEO of your site. You can consider it as an addition to the rel canonical tag.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘shortlink’ is closed to new replies.