.htaccess file bringing down website
-
Hi all,
I’ve been doing some maintenance work on a website. There are a few plugins being used and most were updated recently.
Before any updates are done on the live site I do them first on a duplicate site on the same server.
The most recent problem is that when the admin adds a new post, the .htaccess file seems to get overwitten and brings up an 500 error for the site.
This happened about an hour ago and I have the .htaccess file that caused the problem and a backup that fixes the problem.
The only difference I noticed in the 2 was that some code was misplaced. This is what it should be like:
# Increase cookie security <IfModule php5_module> php_value session.cookie_httponly true </IfModule> # END HTML5 Boilerplate # END WordPress
and this is what it gets changed too.
# Increase cookie security <IfModule php5_module> php_value session.cookie_httponly true </IfModule> # END HTML5 Boilerplate # END WordPress pend to error (doesn't accept empty string, use whitespace if you need) # php_value error_append_string " " # Increase cookie security <IfModule php5_module> php_value session.cookie_httponly true </IfModule> # END HTML5 Boilerplate # END WordPress
As you can see it repeats and breaks the code in the .htaccess file (these are the last lines in the file).
Is there anything I can do to solve this?
I’ll also point out that the duplicate site has no problems.
- The topic ‘.htaccess file bringing down website’ is closed to new replies.