Use code PERFMATTERS for an extra 10% off!
  1. Home
  2. Docs
  3. General
  4. How to remove shortlink in WordPress

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

Remove shortlink

Follow the steps below to remove shortlinks.

Step 1

Click into the Perfmatters plugin settings.

Perfmatters plugin settings
Perfmatters plugin settings

Step 2

Make sure you’re on the “General” submenu.

Perfmatters General submenu
Perfmatters General submenu

Step 3

Toggle on “Remove Shortlink.”

Remove shortlink with Perfmatters plugin
Remove shortlink with Perfmatters plugin

Step 4

Scroll down and click “Save Changes.”

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