0

.htaccess 代码是

RewriteEngine off

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ public/ [L]
    RewriteRule ^(.*) public/$1 [L]
 </IfModule>

问题是什么?

4

1 回答 1

0

我不太确定这是否是你想要做的,但试试这个:

RewriteEngine Off
<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)$ public/$1 [L,QSA]
</IfModule>
于 2018-09-07T11:29:58.113 回答