<\/figure>\r\n\r\n\r\n\r\nOnce saved, click on the previous pretty permalink option you previously had then click Save Changes again.<\/p>\r\n\r\n\r\n\r\n
After resetting the permalink, you can check your posts or pages that had issues with the ‘error 404 not found’ message. You shouldn\u2019t see any more 404 errors after this.<\/p>\r\n\r\n\r\n\r\n
If the issue remains, try resetting your permalinks manually by editing the .htaccess file.<\/p>\r\n\r\n\r\n\r\n
In a single WordPress installation, you can use the default WordPress .htaccess, make sure you have the following in the .htaccess file.<\/p>\r\n\r\n\r\n\r\n
# BEGIN WordPress\r\n<IfModule mod_rewrite.c>\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n<\/IfModule>\r\n# END WordPress<\/pre>\r\n\r\n\r\n\r\nIf your WordPress website is a multisite installation under subdomains, use the following .htaccess rule.<\/p>\r\n\r\n\r\n\r\n
# BEGIN WordPress\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\n\r\nRewriteRule ^wp-admin$ wp-admin\/ [R=301,L]\r\n\r\nRewriteCond %{REQUEST_FILENAME} -f [OR]\r\nRewriteCond %{REQUEST_FILENAME} -d\r\nRewriteRule ^ - [L]\r\nRewriteRule ^(wp-(content|admin|includes).*) $1 [L]\r\nRewriteRule ^(.*\\.php)$ $1 [L]\r\nRewriteRule . index.php [L]\r\n# END WordPress<\/pre>\r\n\r\n\r\n\r\nAnd, if it’s a multisite installation under subdirectories, you can use the following .htaccess rule.<\/p>\r\n\r\n\r\n\r\n
# BEGIN WordPress\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\n\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?wp-admin$ $1wp-admin\/ [R=301,L]\r\n\r\nRewriteCond %{REQUEST_FILENAME} -f [OR]\r\nRewriteCond %{REQUEST_FILENAME} -d\r\nRewriteRule ^ - [L]\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(wp-(content|admin|includes).*) $2 [L]\r\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(.*\\.php)$ $2 [L]\r\nRewriteRule . index.php [L]\r\n# END WordPress<\/pre>\r\n\r\n\r\n\r\n2. Enable mod_rewrite<\/h3>\r\n\r\n\r\n\r\n The apache module called mod_rewrite is responsible to make your .htaccess rule work. If your WordPress website is running on Apache, make sure to enable mod_rewrite. The module is enabled by default in CentOS, but not in Ubuntu. To enable the module, you can run this command below in your Ubuntu server.<\/p>\r\n\r\n\r\n\r\n
$ sudo a2enmod rewrite $ sudo systemctl restart apache2<\/pre>\r\n\r\n\r\n\r\n3. Disable plugin<\/h3>\r\n\r\n\r\n\r\n If you still have the ‘error 404’ issue after checking with the mentioned steps above, you would want to deactivate your plugins in your WordPress dashboard. Or, if you do not have access to the backend or it also is returning error 404 then you can disable the plugins by renaming specific plugin names in wp-content\/plugins\/<\/code> directory.<\/p>\r\n\r\n\r\n\r\nIf you have shell access to the server where your website is hosted, you can use WP-CLI. WP CLI is a command line interface that enables us to interact and manage our WordPress installation like deactivating a plugin, theme, adding users, etc. When using WP CLI, you can run this command to deactivate a plugin named ‘myplugin’ in your WordPress webroot.<\/p>\r\n\r\n\r\n\r\n
$ wp plugin deactivate myplugin<\/pre>\r\n\r\n\r\n\r\nOr, if you want to disable all plugins, run this command:<\/p>\r\n\r\n\r\n\r\n
$ wp plugin deactivate --all<\/pre>\r\n\r\n\r\n\r\nThat’s it! You have learned how to fix the ‘error 404 not found’ message on your WordPress website.<\/p>\r\n\r\n\r\n\r\n
Of course, you don\u2019t need to solve this ‘error 404’ issue if you have a managed WordPress VPS<\/strong><\/a> hosted with us \u2013 in which case, our technical support team will help you investigate and solve this Error 404 Not Found on WordPress immediately. Our technical support team is available 24\/7 and can cater to any questions or requests.<\/p>\r\n\r\n\r\n\r\nPS. If you liked this post, feel free to share it with your friends by using the social media share shortcuts below, or simply leave a comment. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"
When visiting a website, we might ever see an Error 404 Page Not Found message in the web browser. … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":41255,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,21],"tags":[1972,1970,1973,148],"yoast_head":"\nHow to Fix Error 404 Not Found on WordPress | RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n