web.config corrupts pages
-
A web.config file containing a rule to help prevent SQL injection is created in the wp-content folder, but it prevents some resources, e.g. Bootstrap components, from being served. (Proved with Fiddler). Using PHP 7.0x on IIS server. This web.config corrupts the page layout. I am using WP 4.9.5 and the Avoc theme. If the web.config is renamed or deleted, it is regenerated. I have grepped around for this in the code base, but I haven’t located it just yet.
I did find a workaround– I think. I have altered the REGEX in the web.config’s rule, so it has no effect, but the file remains and hopefully won’t be overridden. I have some concern that I have just defeated some security measures.
I don’t know yet if this is the WP core or a plugin or theme code itself is writing this file. It really messes things up.
Bob
- The topic ‘web.config corrupts pages’ is closed to new replies.