non-default permalinks and 404 on fresh install
-
so i also ran into the following problem:
after freshly installing wordpress, any permalink setting other than default produces a http 404 response. the theme was twentyfourteen.
this fixed my problem:
1. enabeling apache module mod_rewrite
2. changing AllowOverride Directive from None to All for document rootstep 1, enabeling apache module mod_rewrite:
https://www.google.com/search?q=apache+enable+mod_rewritestep2, changing AllowOverride Directive from None to All for document root:
somewhere in your virtual host list configuration (often it is a directory called “sites-available” there is a line that specifies the “Document Root” like this
DocumentRoot /somedir/www
from this line onwards the document root is referenced by a single slash “/”. somewhere after that line will be directives for the document root directory (“/”).
like this:
<Directory /> Options FollowSymLinks AllowOverride All </Directory>
probably the AllowOverride-directive is set to None. Change it to All.
http://dev.antoinesolutions.com/apache-server/mod_rewrite
http://httpd.apache.org/docs/current/en/mod/core.html#allowoverride
- The topic ‘non-default permalinks and 404 on fresh install’ is closed to new replies.