Force a URL-path for mod_rewrite's RewriteRule Substitution
问题 When performing rewrites with mod_rewrite's RewriteRule , the substitution is evaluated and a guess made as to whether it's a URL or a file-system path, based on whether the root directory of the substitution exists on the file system. Here's the relevant section from the documentation: URL-path Note that mod_rewrite tries to guess whether you have specified a file-system path or a URL-path by checking to see if the first segment of the path exists at the root of the file-system. For example,