|
PHP doesn't yet have such a function for LSWS.
LSWS URL rewrite engine can enabled at virtual host and context level, and is inherited along the directory tree until it is explicitly overridden.
You can just create a unique rewrite rule that, if rewrite engine is enabled, would redirect to somewhere (an empty text file is suffice). Then test it with 'curl -I URL' (doesn't have to on the same box) and see if it returns 200 or 404 as the HTTP response.
|