php - Wordpress Permalinks not working - Apache Configuration Reset -
on live server, resolve 404 error when trying access page, changed below setting in httpd.conf
<directory "/usr/local/apache/htdocs"> options includes indexes followsymlinks multiviews allowoverride order allow,deny allow </directory>
but on next day gets reset below
<directory "/usr/local/apache/htdocs"> options includes indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory>
really hoping going work, no go. .htaccess
looked after changed permalink option:
<directory /> options +followsymlinks allowoverride </directory> <files .htaccess> order allow,deny deny </files> # 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] </ifmodule> # end wordpress
the pages still not accessible. changing allowoverride none
allowoverride all
works, resets again default setting somehow.
404 page not found error appears after changing httpd.conf
, .htaccess
.
note: mod_rewrite
installed
Comments
Post a Comment