【发布时间】:2012-11-28 16:09:34
【问题描述】:
RewriteEngine On # Turn on the rewriting engine
RewriteRule . url.php [NC,L]
我将所有请求重定向到 url.php 但我想保留 index.php 原样。
【问题讨论】:
-
所有 endline cmets 都会生成错误,并将用警告填充错误日志。不要将 cmets 放在任何指令或任何行的末尾。这种变化发生在 Apache 1.3.x 中,将 cmets 放在了自己的行中。