rewrite 可不可以做条件判断呀。
我想这样,如果一个静态文件(html)存在,就跳转的这个地址,
如果不存在就跳转到指定的php 文件,但这个文件应该不是404指定的文件
------解决方案--------------------
html和php同名吗? 还是一个php对应多个html?
------解决方案--------------------
可以这样: RedirectMatch 404 some.*.html$ http://www.anotherserver.com/what.php
你学习一下应该就能满足你的具体业务.
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!