Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache重写-重新路由除此url之外的所有请求_Apache - Fatal编程技术网

Apache重写-重新路由除此url之外的所有请求

Apache重写-重新路由除此url之外的所有请求,apache,Apache,我试图在我的服务器上设置mod_状态,但出现了一个空白页面: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from all </Location> 谢谢你的帮助,没关系,我想出来了 我改变了这一点: RewriteCond %{REQUEST_FILENAME}

我试图在我的服务器上设置mod_状态,但出现了一个空白页面:

    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from all
    </Location>

谢谢你的帮助,

没关系,我想出来了

我改变了这一点:

RewriteCond %{REQUEST_FILENAME} !^/server-status/$
为此:

RewriteCond %{REQUEST_URI} !^/server-status
RewriteCond %{REQUEST_FILENAME} !^/server-status/$
RewriteCond %{REQUEST_FILENAME} !^/server-status/$
RewriteCond %{REQUEST_URI} !^/server-status