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='https://domain.com?p=712' />

This is used for a shortlink to your pages and posts. However, if you are already using pretty permalinks, such as domain.com/post, 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

Under the “Options” tab and “General” sub-navigation menu, toggle on “Remove Shortlink.”

Remove shortlink with Perfmatters plugin
Remove shortlink with Perfmatters plugin

Step 3

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