Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond $0 !=index.php
RewriteRule .* index.php?path=$0 [QSA,B]
答案 0 :(得分:0)
不是,这是重写的相关代码:
RewriteEngine On
RewriteBase /
RewriteCond ${REQUEST_URI} !^/index.php$
RewriteRule ^(.*)$ index.php?path=$1 [QSA,B,L]