开发者

Mod_rewrite rule if no other rules match

Is there a way 开发者_C百科to do a sort of "catch all" rule that will only be matched if no other rules have been matched in my .htaccess file?


Put this rule as last rule to catch any request that could not be mapped onto an existing file:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ catch-all.foo


if you put your rule at the bottom, and have your other rules with a [L], it'll be considered the catch-all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜