Use the code PERFMATTERS for 10% off!

How to Remove Shortlink in WordPress

By default, the following tag shows up in every WordPress install.

<link rel='shortlink' href='' />

This is used for a shortlink to your pages and posts. However, if you are already using pretty permalinks, such as, then there is no reason to keep this, it is just unnecessary code.

wordpress shortlink header
WordPress shortlink header

You can easily remove this in the perfmatters plugin by enabling the “Remove Shortlink” option.

remove shortlink with perfmatters plugin
Remove shortlink with perfmatters plugin

This also removes the rel=shortlink HTTP response header associated with it.

rel=shortlink HTTP response header
shortlink HTTP header

Was this article helpful?

Related Articles