emlog5.3.1 只支持php5.4 测试PHP5.6前台页面打不开显示404
emlog在nginx二级目录下的伪静态设置规则
location / {
index index.html index.htm index.php l.php;
autoindex off;
if (!-e $request_filename)
{
#地址作为将参数rewrite到index.php上。
rewrite ^/(.*)$ /index.php/$1 last;
}
}
location /blog/ {
index index.html index.htm index.php l.php;
autoindex off;
if (!-e $request_filename){
rewrite ^/blog/(.*)$ /blog/index.php/$2 last;
}
}默认的是这样的
location / {
index index.php index.html;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php last;
}
}如果是apache的话应该很简单,直接在EMLOG后台生成 .htaccess 放到二级目录里面就行了
代码如下:



发表评论