was not closed?
-
Hi,
I’m getting an Internal Server Error 500 on one of my servers.
It occurs at 4:30am each morning, WordPress or a plugin is rewriting the ‘.htaccess’ file. The code it is adding is valid, but a duplicate of what is already in it below.
Basically the ‘# BEGIN WordPress’ section is being added again in the middle of ‘# BEGIN W3TC Browser’ content above. This is the same code as below without any changes… it’s just like it’s verified the code and cut short on reading/writing to the file? Cleaning it up is easy, but then it attempts to do it again the following days.
File permission for ‘.htaccess’ is set at 660. If that matters?
Error log: .htaccess:375: <FilesMatch> was not closed.
It’s referring to (which looks closed to me):
<FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$"> <IfModule mod_headers.c> Header set Pragma "public" Header append Cache-Control "public" Header set X-Powered-By "W3 Total Cache/0.9.4" </IfModule> </FilesMatch>
However am I able to remove those or recreate them? Is the W3TC content also meant to be at the top before the WordPress rewrites?
Also wondering if server has a limit on the max length written in PHP? Appears to of just started happening when the ‘.htaccess’ got longer?
- The topic ‘was not closed?’ is closed to new replies.