How Can I correct Broken WordPress Permalinks


Question: How Can I correct Broken WordPress Permalinks

I have run into a problem with my WordPress blog. Previously, I could access pages using URLs like However, something unexplainable happened such that this URL has been renamed to I have tried to change the permalink structure under settings and the link breaks. When the link appears as it does not load in the browser. When I manually write it in the browser URL bar as it automatically redirects to It seems as though I can no longer use the index.php name that was previously contained in the original URL pattern hence cannot access the links using human friendly names. How can I possibly fix the problem?

Total Answers: 2


Answers 1: of How Can I correct Broken WordPress Permalinks

Looks like your .htaccess file was overwritten. Simplest solution is to change the permalink setting back to page_id and then again to Post name it should overwrite .htaccess file, if php error not try to put that into your .htaccess:

# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>  # END WordPress 

Answers 2: of How Can I correct Broken WordPress Permalinks

If its just about accessing all pages with adding index.php php error in url then simply you can use custom permalink structure to allow WP to do this.

You mension that its showing page_id in place of name so php error in permalink you can use %postname for his. take a look on screenshot.

after doing this change your url will work same as you asked.

Click to view screenshot of Custom permalink