这是我的.htaccess文件,最后你可以看到它将所有html重写为php。但我想排除一个文件。如果我想要多个文件不被重定向怎么办?
我试图添加
RewriteCond %{REQUEST_URI} !^/googlede35cf4037671fba\.html$ [NC]
但它不起作用。
RewriteEngine On
RewriteRule all-([0-9]+)\.html$ all.php?page=$1 [L]
RewriteRule profile-([0-9]+)-(.*)\.html$ profile.php?id=$1&user=$2 [L]
RewriteRule upvote-([0-9]+)-(.*)\.html$ upvote.php?id=$1&user=$2 [L]
RewriteRule comments-([0-9]+)-(.*)\.html$ comments.php?id=$1&user=$2 [L]
RewriteRule post-([0-9]+)-(.*)\.html$ post.php?id=$1&title=$2 [L]
RewriteRule category-([0-9]+)-(.*)-([0-9]+)\.html$ category.php?cid=$1&name=$2&page=$3 [L]
RewriteRule userq-([0-9]+)-([0-9]+)\.html$ userq.php?id=$1&page=$2 [L]
RewriteRule usera-([0-9]+)-([0-9]+)\.html$ usera.php?id=$1&page=$2 [L]
RewriteRule ^(.*)\.html$ $1.php [L]
答案 0 :(得分:0)
糟糕。刚刚刷新,它看起来很有效。这是排除正确的正确方法吗?所以我有超过1个文件,我可以写另一个ReWriteCond规则吗?
proc rank data=study2 out=rankout;
var arl_method1 arl_method2;
by nphase1 meanshift sigmashift;
ranks ARL_Rank1 ARL_Rank2;
run;