WordPress 404 not found

Check your apache configuration file and make sure AllowOverride is set to All for your web root directory.Skip this step if you are on a shared hosting

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted


<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

Check if Mod_Rewrite is enabled in apache. Ignore this step if you are on Shared Hosting

“apachectl -M” should list all the modules enabled in apache. If mod rewrite is missing enable following below steps

For Centos

edit /etc/httpd/conf.modules.d/00-base.conf and add or uncomment LodeModule rewrite_module modules/mod_rewrite.so

For Ubuntu

run “a2enmod rewrite” in terminal
Don’t forget to restart apache for changes to take effect

Check .htaccess file exist in webroot folder of wordpress install with below contents and make sure .htaccess file is owned by webserver user

# 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]

# END WordPress

Note : If you installed wordpress on subfolder, change “RewriteBase /” to “RewriteBase /subfoldername/”

Let us fix this for you at $75 with one week after fix support Get Started

Leave a Reply

Your email address will not be published. Required fields are marked *