1
鉴于输入http://example.com/foo.html
如何检查http://example.com/subdir/foo.html
是否存在,使用mod_rewrite
在.htaccess
?这感觉就像如何使用RewriteCond测试子目录文件是否存在?
Options +FollowSymlinks
RewriteEngine on
RewriteBase/
RewriteCond subdir%{REQUEST_URI} -f
应该工作,但REQUEST_URI
相比,当内RewriteRule
用于内RewriteCond
使用时出现意外的行为(对我来说)。