最新公告:推荐好友购买联系客服领现金红包~

emlog伪静态规则

程序问题 主机帮助 949浏览

找到网站根目录下的伪静态文件.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伪静态规则