404 not found after changing permalinks to post name in wordpress

August 18, 2014 11.9k views

Clean default wordpress installation, all fine, just when I change permalinks in wordpress settings to post name, the default wordpress post is given 404 not found. Any help would be appreciated.

5 Answers

Ok, found the solution,

<Directory /path/to/site>
     #add the following setting to allow .htaccess in your web dir to work
     AllowOverride All

     #other settings ---


and thats in the /etc/apache2/apache2.conf file

  • I have the same problem.

    Unfortunately, the solution you found didn’t work for me.

    Terrible experience with this DO “1-click” install. I think it would be faster if I had created a clean CentOS and done everything myself… nothing works: permissions, rewrite, etc.

  • This solution works for me, just don’t forget restart the apache service service apache2 restart

this is unbelievable ! I just dont have the solution, anybody please help !!
My .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

rewrite_module is on

and still 404....

same her how to solve this problem

be sure to add mod_rewrite and restart apache after that

sudo a2enmod rewrite sudo service apache2 restart
Have another answer? Share your knowledge.