Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.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 重写规则没有尾随斜杠?_Apache_Mod Rewrite_Url Rewriting - Fatal编程技术网

Apache 重写规则没有尾随斜杠?

Apache 重写规则没有尾随斜杠?,apache,mod-rewrite,url-rewriting,Apache,Mod Rewrite,Url Rewriting,我有一个链接设置:-问题是当点击它去-也当我在重定向到的url类型 那么,我如何才能确保如果输入了,那么url就不会转到不管怎样,抱歉,删除了firefox历史记录,现在它就不再进行重定向重写引擎了 重写你的.domain #将带有可选尾随斜杠的地址重写为不带斜杠的地址 重写规则^/?(.*)/?$$1[L] 试试这个请把你的重写规则

我有一个链接设置:-问题是当点击它去-也当我在重定向到的url类型


那么,我如何才能确保如果输入了,那么url就不会转到

不管怎样,抱歉,删除了firefox历史记录,现在它就不再进行重定向

重写引擎了
重写你的.domain
#将带有可选尾随斜杠的地址重写为不带斜杠的地址
重写规则^/?(.*)/?$$1[L]

试试这个

请把你的重写规则