What to do if you get a 404 error in WordPress

* We are very sorry, but mixhost does not support .htaccess, so please understand in advance that we cannot answer any errors or detailed setting methods that accompany the execution of this article.

If a 404 error occurs in WordPress and you cannot display the site, please check the following two points first.

  1. Is .htaccess installed?
  2. If .htacces is installed, is the content normal?

If you change the permalink or install a plugin when moving, a 404 error may occur.

How to reset permalink

From the WordPress administration screen, click Settings > Permalink Settings and press the Save Changes button.

If you do the above operation, permalinks will be reset and .htaccess will be overwritten.
If the error occurs even after performing the above operation, please correct the .htaccess.

Modifying .htaccess

Please set the rewrite rule as below.

# 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

* When using cPanel's file manager, .htaccess files are not displayed by default, so please refer to "How to display hidden files in file manager" and make them visible.

Was this article helpful?
6 out of 29 found this helpful