2010-09-10 62 views
0

我想要做的是不管用戶輸入什麼,重定向到index.php。

這是我在這裏說的嗎?

Options +FollowSymLinks 
RewriteEngine On 

RewriteBase/
RewriteCond $0 !=index.php 

RewriteRule .* index.php?path=$0 [QSA,B] 

回答

0

不是真的,這是改寫了相關代碼:

RewriteEngine On 
RewriteBase/
RewriteCond ${REQUEST_URI} !^/index.php$ 
RewriteRule ^(.*)$ index.php?path=$1 [QSA,B,L] 
+0

輝煌。 。 。 。 – bob 2010-09-14 23:59:38