.htaccessredirect所有子目录和文件
我们有一个子网站domain.com/path/ad,我想直接将所有的stream量直接传递给框架处理程序。 domain.com/path/index.cfm 到目前为止,我有 RewriteRule ^$ index.cfm [QSA,NS] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.cfm [R=permanent,L] 如果文件夹存在,它会正确地将/ path / ad / otherredirect到/path/ad/index.cfm。 我需要什么使它适用于不存在的文件夹? 我还需要跟踪请求的原始文件/path。 /path/ad/example1 => /path/ad/index.cfm?ad=example1