2010-08-08 121 views
0

以下問題,我想要路由所有請求從http到htts,在此路由之後所有請求將導致404到route.php腳本。問題與重寫規則

但我不知道,如何告訴mod_rewrite第一次使用規則之一,並比規則二?

我的規則是這樣的:

RewriteEngine on 
RewriteCond  %{SERVER_PORT} !^443$ 
RewriteRule  (.*)    https://%{HTTP_HOST}/_playground/$1 

RewriteCond  %{SCRIPT_FILENAME} !-f 
RewriteCond  %{SCRIPT_FILENAME} !-d 
RewriteCond  %{SERVER_PORT} !^443$ 
RewriteRule  (.*)    https://localhost/_playground/route.php?to=$1 


enter code here 

回答