0
我想要做的是不管用戶輸入什麼,重定向到index.php。
這是我在這裏說的嗎?
Options +FollowSymLinks
RewriteEngine On
RewriteBase/
RewriteCond $0 !=index.php
RewriteRule .* index.php?path=$0 [QSA,B]
Options +FollowSymLinks
RewriteEngine On
RewriteBase/
RewriteCond $0 !=index.php
RewriteRule .* index.php?path=$0 [QSA,B]
不是真的,這是改寫了相關代碼:
RewriteEngine On
RewriteBase/
RewriteCond ${REQUEST_URI} !^/index.php$
RewriteRule ^(.*)$ index.php?path=$1 [QSA,B,L]
輝煌。 。 。 。 – bob 2010-09-14 23:59:38