PHP code snippet causes page 404 in WordPress -
i facing strange issue wordpress. when put line code snippet in blog post:
$app = require_once __dir__.'/../bootstrap/app.php'; i 404 error when try preview page, , wont able save post @ if make line of code incorrect example, remove last 'e' require, way:
$app = requir_once __dir__.'/../bootstrap/app.php'; everything works fine. code somehow executing , causing problems?
your web host has paranoid web application firewall (most mod_security) enabled, rules block requests contain data looks php code.
contact web host , request turn feature off.
Comments
Post a Comment