帝国多终端之手机端伪静态设置,freebsd+nginx
登录帝国后台 伪静态规则全部选择默认。

2.根据http://bbs.phome.net/showthread-42-324827-0.html
文中写出的,
在网站手机端m目录。。 /home/www/nginx/m下建立.htaccess 文件。
内容
rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last; rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last; rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last; rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last; rewrite ^([^\.]*)/comment-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)-(.+?)\.html$ $1/e/pl/index\.php\?doaction=$2&classid=$3&id=$4&page=$5&myorder=$6&tempid=$7 last; if (!-e $request_filename) { return 404; }
3、在nginx.conf中配置 include /home/www/nginx/m/.htaccess;

4.运行nginx -t 测试无措
5.service nginx restart
成功
浙公网安备 33010602011771号