更新时间:2023-09-05 13:15:04
使您的root .htaccess像这样:
Have your root .htaccess like this:
Options -Indexes -MultiViews +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(?!admin/)(.+)$ /index.php?u=$1 [NC,QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.+)$ /admin/index.php?u=$1 [NC,QSA,L]
对于此简单要求,无需在admin文件夹中具有.htaccess.
There is no need to have .htaccess in admin folder for this simple requirement.