新闻频道绑定二级域名,NGINX伪静态找不到网页
本帖最后由 y1219 于 2014-12-23 13:23 编辑用的是这个规则,如果不开启二级域名正常,开启二级域名,首页能打开,但内容和列表页,均显示找不到网页,帮忙看看怎么回事,另外招聘板块绑定域名也是找不到网页
http://www.123.com/news/show-1.html这样可以打开
http://news.123.com/show-1.html 这样打不开
location / {
rewrite ^/(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php last;
rewrite ^/(.*)/file/(.*)\.php(.*)$ /404.php last;
rewrite ^/(.*)-htm-(.*)$ /$1.php?$2 last;
rewrite ^/(.*)/show-(+)([\-])?(+)?\.html$ /$1/show.php?itemid=$2&page=$4 last;
rewrite ^/(.*)/list-(+)([\-])?(+)?\.html$ /$1/list.php?catid=$2&page=$4 last;
rewrite ^/(.*)/show/(+)/(+)?([/])?$ /$1/show.php?itemid=$2&page=$3 last;
rewrite ^/(.*)/list/(+)/(+)?([/])?$ /$1/list.php?catid=$2&page=$3 last;
rewrite ^/(.*)/(+)-c(+)-(+)\.html$ /$1/list.php?catid=$3&page=$4 last;
rewrite ^(.*)/(+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3 last;
rewrite ^/(com)/(+)/(+)/(.*)\.html$ /index.php?homepage=$2&file=$3&rewrite=$4 last;
rewrite ^/(com)/(+)/(+)([/])?$ /index.php?homepage=$2&file=$3 last;
rewrite ^/(com)/(+)([/])?$ /index.php?homepage=$2 last;
}
模块绑定二级域名的方法http://help.destoon.com/skill/11.html
heaven 发表于 2014-12-23 13:58
模块绑定二级域名的方法http://help.destoon.com/skill/11.html
模块绑定是对的,
更改了后台的伪静态规则
http://news.123.com/show-htm-itemid-1.html
这样能用了,但其他方式还是用不了
你这个二级域名站点设置伪静态了么
y1219 发表于 2014-12-23 15:34
模块绑定是对的,
更改了后台的伪静态规则
http://news.123.com/show-htm-itemid-1.html
复制.htaccess文件到\news 试试
liupt 发表于 2014-12-24 08:54
你这个二级域名站点设置伪静态了么
伪静态设置了,规则不对,只能用http://news.123.com/show-htm-itemid-1.html
这种规则,其他规则用不了
heaven 发表于 2014-12-24 09:03
复制.htaccess文件到\news 试试
我的是NGINX,的
y1219 发表于 2014-12-24 11:25
伪静态设置了,规则不对,只能用http://news.123.com/show-htm-itemid-1.html
这种规则,其他规则用不了 ...
用人家官方的还是你自己找的位静态规则呢
liupt 发表于 2014-12-24 16:43
用人家官方的还是你自己找的位静态规则呢
官方的啊
http://download.destoon.com/rewrite/nginx.txt
页:
[1]
2