代码: 全选
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|static|min|alipay|weixinpay|pingpp|upload|images|Batch_trans_notify-PHP-UTF-8|robots\.txt)
RewriteRule ^(.*)$ index.php/$1
RewriteRule ^test/?$ welcome/index [R=301]
</IfModule>