Home / Knowledgebase Home / How to Reset WordPress Permalinks

// View Comments //

How to Reset WordPress Permalinks

Permalinks are the permanent URLs used for your WordPress posts, pages, and other content. In many cases, a website may begin showing “404 Not Found” errors or broken links immediately after migrating to a new server, installing certain plugins, or making structural configuration changes. These issues usually occur because the server’s rewrite rules are out of sync with the database. Resetting the WordPress permalink structure refreshes these rules and is often the quickest way to resolve URL-related issues. This guide explains how to reset your permalinks using three different methods depending on your level of access.

Quick Steps

  1. Log in to your WordPress Admin Dashboard.

  2. Navigate to Settings > Permalinks.

  3. Scroll to the bottom and click Save Changes without modifying any settings.

  4. WordPress will automatically refresh the rewrite rules.

  5. Visit your site to confirm the links are working again.

 

Follow the step-by-step instructions below to refresh your WordPress permalink structure.

Method 1: Reset Permalinks from the WordPress Dashboard

  1. Log in to your WordPress Admin Dashboard.
  2. From the left menu, navigate to: Settings → Permalinks.

    WordPress Admin Dashboard

    WordPress Admin Dashboard



  3. You will see the Permalink Settings page.
  4. Without changing any settings, click the Save Changes button.

    WordPress Admin Dashboard

    WordPress Admin Dashboard



  5. WordPress will regenerate the rewrite rules automatically.
    Once saved, check your website pages again to confirm that the issue is resolved.

Method 2: Change and Reset the Permalink Structure

  1. Log in to the WordPress Dashboard.
  2. Navigate to Settings → Permalinks.

    WordPress Admin Dashboard

    WordPress Admin Dashboard



  3. Select Plain as the permalink structure. 

    WordPress Admin Dashboard

    WordPress Admin Dashboard



  4. Click Save Changes.



  5. Change the structure back to your preferred option (for example Post name).
  6. Click Save Changes again.

Method 3: Reset Permalinks by Updating the .htaccess File

  1. Log in to your hosting control panel.(cPanel)
  2. Open File Manager or connect using FTP/SSH.

    cPanel Interafce FileManager

    cPanel Interafce FileManager



  3. Navigate to the WordPress installation directory (the directory containing wp-config.php).
  4. Locate the .htaccess file.
    If the file does not exist, create a new file named .htaccess.
  5. Add the following default WordPress rewrite rules:
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
  6. Save the file and reload your website.

Method 4: Reset Permalinks Using WP-CLI (Advanced)

For developers and administrators with SSH access, using WP-CLI is the fastest way to flush rules without a browser.

  1. Connect to your server using SSH.
  2. Navigate to the WordPress installation directory (the directory where wp-config.php is located).
    Example: cd /home/username/public_html
  3. Run the following command to flush and regenerate the rewrite rules:  
    wp-cli rewrite flush
     
  4. Once the command completes successfully, check your website to confirm the permalink issue has been resolved.

Wrapping Up

Resetting the permalink structure is a simple and effective troubleshooting step for resolving 404 errors and broken links in WordPress. In most cases, saving the permalink settings from the WordPress dashboard will refresh the rewrite rules and restore normal functionality.


If you have any web hosting questions please feel free to reach out to us. We're happy to help.

Shared Hosting | Reseller Hosting | Managed WordPress Hosting | Fully Managed VPS Hosting
Our Guiding Principles
Subscribe to comment notifications
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments