简体   繁体   中英

How to Fix WordPress Posts Returning 404 Error?

using cpanel.

I have tried this:

  1. Go to Settings » Permalinks, and simply click on Save Changes button.
  2. changing my .htaccess to 666
 > # 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 

It's still not working.

  • Login to your server using FTP, and modify the .htaccess file which is located in the same location where folders like /wp-content/ and /wp-includes/ are located.

  • The easiest thing you can do is to temporarily make the file writeable by changing the permissions to 666. Then repeat the original solution.

  • Don't forget to change the permissions back to 660. You can also manually add this code in your .htaccess file.

Case 2 :

  • Login to your server using FTP, take backup of .htaccess and remove the .htaccess file or you can rename htaccess.

  • Login to admin dashboard and update permalinks.

How to update permalinks?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM