The "Not Found" error when setting WordPress permalinks to "Post Name" is a common issue, and it usually occurs because the server's .htaccess file isn't properly configured or isn't writable. Here's how you can troubleshoot and fix the issue:
1. Ensure .htaccess is Writable
WordPress needs to write to the .htaccess file to set up the permalink structure. If the file isn't writable, the changes won't take effect.
Go to your WordPress dashboard.
Navigate to Settings > Permalinks.
Simply click "Save Changes" at the bottom of the page. This will attempt to regenerate the .htaccess file.
If this doesn't work, proceed to the next steps.
2. Check the .htaccess File
The .htaccess file should contain the correct rewrite rules for WordPress. If it doesn't, you can manually add them.
Access your website's root directory via FTP or your hosting file manager.
Locate the .htaccess file (it’s a hidden file, so make sure your FTP client is set to show hidden files).
Open the .htaccess file and ensure it contains the following code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If the file is missing or doesn’t contain this code, add it manually and save the file.
3. Check File Permissions
Ensure the .htaccess file and the root directory have the correct permissions.
The .htaccess file should have permissions set to 644.
The root directory should have permissions set to 755.
You can change file permissions via FTP or your hosting control panel.
Hi,
The "Not Found" error when setting WordPress permalinks to "Post Name" is a common issue, and it usually occurs because the server's .htaccess file isn't properly configured or isn't writable. Here's how you can troubleshoot and fix the issue:
1. Ensure .htaccess is WritableWordPress needs to write to the .htaccess file to set up the permalink structure. If the file isn't writable, the changes won't take effect.
Go to your WordPress dashboard.
Navigate to Settings > Permalinks.
Simply click "Save Changes" at the bottom of the page. This will attempt to regenerate the .htaccess file.
If this doesn't work, proceed to the next steps.
2. Check the .htaccess FileThe .htaccess file should contain the correct rewrite rules for WordPress. If it doesn't, you can manually add them.
Access your website's root directory via FTP or your hosting file manager.
Locate the .htaccess file (it’s a hidden file, so make sure your FTP client is set to show hidden files).
Open the .htaccess file and ensure it contains the following code:
-
3. Check File PermissionsIf the file is missing or doesn’t contain this code, add it manually and save the file.
Ensure the .htaccess file and the root directory have the correct permissions.
The .htaccess file should have permissions set to 644.
The root directory should have permissions set to 755.
You can change file permissions via FTP or your hosting control panel.
Feel free to ask for anything you need.
Kind Regards