WordPress permalinks overview

Overview

Permanent links (or, permalinks) are the full URLs of posts and pages on a WordPress site. There are different structures available for permalinks, but all will, at minimum, include the domain name and a slug (the piece of the URL that comes after the domain name). Some examples include:

  • www.example.com/category/yourcategory
  • www.example.com/home
  • www.example.com/shop
  • www.example.com/blog/yourblog/

These permalinks are primarily used for sharing specific posts and pages on your site, such as linking to your content or sharing it on social media, or indexing your site through search engines such as Google.

Resetting and configuring permalinks

When changes are made to the WordPress that affect the permalink structure (such as migrations, importing page/post content, or adding posts through plugins or code), you will need to save your permalinks again to refresh them. The following steps explain two methods of refreshing the permalinks and rewrite rules.

Via WordPress admin dashboard

  1. Log in to your domain’s WordPress dashboard.
  2. In your panel, navigate to Settings > Permalinks.
  3. Click Save Changes.

Via SSH

  1. Log in to your server via SSH.
  2. Navigate to your WordPress directory.
  3. Run the following command.
    [server]$ wp rewrite flush

Setting up SEO-friendly URLs

SEO-friendly URLs are easily readable by both humans and search engines. In WordPress, this is typically done by using the Post name permalink structure. Since the release of WordPress 4.2, WordPress uses Post name structure by default. The following steps explain how to edit the permalink structure to be SEO-friendly if it is not currently:

Permalinks can be safely saved/refreshed. However, changing the permalink structure of an existing site can cause it to lose "social media share count" and may result in the site losing SEO ranking.

If you need to update the permalink structure to improve SEO, you will still lose your social share count, but the benefits will outweigh the loss in the long term.

  1. Log in to your domain’s WordPress dashboard.
  2. In your panel, navigate to Settings > Permalinks.
  3. Using the radio buttons, select the Post name option.
  4. Click Save Changes.

See also

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

WordPress overview

Overview WordPress is a Content Management System (CMS) and blogging tool. It can be used to...

How to log into your WordPress site

Overview You can log into any WordPress site at the following address:...

Creating a Coming Soon page for WordPress

Overview This article describes how to create a static Coming Soon page that will be set as the...

How do I edit my WordPress users?

Overview The following describes how to edit your WordPress user in the WordPress admin...

Difference between WordPress.com and WordPress.org

Overview WordPress offers two versions of its product: WordPress.com and WordPress.org. The...