Mod_rewrite不发送301而是200发送

时间:2013-08-23 09:41:24

标签: mod-rewrite

我目前有一个mod重写设置,如“RewriteRule ^ /?File.zip $ index.php?r = package / latest [L]”

不幸的是,访问File.zip的客户端无法或不会遵循重定向。有没有办法告诉mod_rewrite不要重写网址,但基本上是通过并从我的PHP脚本中获取内容?提前谢谢!

1 个答案:

答案 0 :(得分:0)

是的,你可以。使用RewriteCond感谢标记为NOT Equal

实施例

RewriteCond %{REQUEST_URI} !^smth-you-want-to-exclude$