添加.htaccess文件放置根目录
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/[目录名]/
RewriteRule ^(.*)$ [目录名]/$1?Rewrite [L,QSA]
</IfModule>
添加.htaccess文件放置根目录
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/[目录名]/
RewriteRule ^(.*)$ [目录名]/$1?Rewrite [L,QSA]
</IfModule>