悦眸科技

虚拟主机设置二级目录运行

网站首页产品中心资讯首页2020-08-25

1.htaccess根目录:


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1?Rewrite [L,QSA]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]


2.htaccess运行目录:


Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

3.删除user.ini

上一篇:

下一篇:没有了