找到网站根目录下的伪静态文件.htaccess
填写如下规则
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [L]
nginx环境配置文件中添加段落
location / {
index index.php index.html;
if (!-e request_filename)
{
rewrite ^/(.*) /index.php last;
}
}
转载请注明:主机帮助 » emlog伪静态规则