Why your wordpress install returns 404

Several reasons can cause this:

  • You dont have apache rewrite module installed…. run a2enmod rewrite and restart apache
  • You dont have “AllowOverride All” in the apache config file. To fix:
      • Find the appropriate section in the apache config (for example, in ubuntu, /etc/apache2/sites-enabled/000-default)
      • Find the directory section where wordpress is installed (example: <Directory /var/www/wordpress>
      • Ensure the line AllowOverride All is present
  • The wordpress folder doesnt have the appropriate permissions… make sure that the webserver user can write to the folder
  • You have a wrong .htaccess file.
      • Delete the current .htaccess file
      • Under Settings > Permalinks, set to default
      • Save
      • Under Settings > Permalinks, set back to the original value
      • Save
Advertisement
Privacy Settings

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.