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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -