资讯网页打不开 帮调整一下吧 谢谢

问:伪静态之后 资讯详情页打不开 http://0853fdc.gotoip1.com/news/201903/20/1883.html

原来用的是ngix环境 伪静态规则 资讯可以打开 mff.tsent.cn/news/201903/20/1883.html
帮调整一下资讯的伪静态规则吧 官方给的资讯规则 ngix里面可用 rewrite ^/(.*)/([0-9] )/([a-z] ).html?$ /$1/show.php?&at=$3&itemid=$2; 
,资讯网页打不开 帮调整一下吧 谢谢

答:您好,检查您提供的规则有问题,我司直接访问http://0853fdc.gotoip1.com/show.php?&at=201903/20/1883&itemid=news 仍然报错404错误,建议联系程序商核实一下,或者提供下nginx的完整规则,我司参考一下,非常感谢您长期对我司的支持!

问:ngix下面的伪静态规则 可以用

   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-([0-9] )([\\-])?([0-9] )?\\.html$ /$1/show.php?itemid=$2&page=$4 last;rewrite ^/(.*)/list-([0-9] )([\\-])?([0-9] )?\\.html$ /$1/list.php?catid=$2&page=$4 last;rewrite ^/(.*)/show/([0-9] )/([0-9] )?([/])?$ /$1/show.php?itemid=$2&page=$3 last;rewrite ^/(.*)/list/([0-9] )/([0-9] )?([/])?$ /$1/list.php?catid=$2&page=$3 last;rewrite ^/(.*)/([A-za-z0-9_\\-] )-c([0-9] )-([0-9] )\\.html$ /$1/list.php?catid=$3&page=$4 last;rewrite ^/(.*)/([0-9] )-([0-9] )-([0-9] )-([0-9] )\\.html$ /$1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last;rewrite ^/(.*)/([a-z] )/(.*)\\.shtml$ /$1/$2/index.php?rewrite=$3 last;
rewrite ^/(com)/([a-z0-9_\\-] )/(sale|rent)/list(.*).html?$ /index.php?homepage=$2&file=$3&str=$4  last;rewrite ^/(com)/([a-z0-9_\\-] )/([a-z] )/list(.*).html /index.php?homepage=$2&file=$3&str=$4 last;
rewrite ^/(com)/([a-z0-9_\\-] )/([a-z] )/(.*)\\.html$ /index.php?homepage=$2&file=$3&rewrite=$4 last;rewrite ^/(com)/([a-z0-9_\\-] )/([a-z] )([/])?$ /index.php?homepage=$2&file=$3 last;rewrite ^/(com)/([a-z0-9_\\-] )([/])?$ /index.php?homepage=$2 last;
rewrite ^/(house)/list-(r|b|t|p|f|l|o|h|n|g|j|e)([0-9A-Z_] )\\.html?$ /$1/list.php?&$2=$3  last;rewrite ^/(house)/list-r([0-9] )-t([0-9] )-p([0-9] )-k(.*)\\.html?$ /$1/list.php?&r=$2&t=$3&p=$4&k=$5  last;rewrite ^/(house)/map.html?$ /map/newhouse.php  last;
rewrite ^/(house)/([0-9] )/?$ /$1/show.php?&at=$3&itemid=$2  last;rewrite ^/(house)/([0-9] )/index\\.html?$ /$1/show.php?&at=$3&itemid=$2  last;rewrite ^/(house)/([0-9] )/wenfang-g([0-9] )\\.html?$ /extend/wenfang.php?mid=6&itemid=$1&page=$2 last;rewrite ^/(house)/([0-9] )/(xinxi|huxing|jiage|xiangce|wenfang|peitao|zixun|dianping|pic)\\.html?$ /$1/show.php?&at=$3&itemid=$2   last;rewrite ^/(.*)/p([0-9] )-h([0-9] )\\.html?$ /$1/show.php?itemid=$2&houseid=$3 last;rewrite ^/(house)/([0-9] )/xiangce-c([0-9] )\\.html?$ /$1/show.php?&at=xiangce&itemid=$2&catids=$3 last;rewrite ^/(house)/([0-9] )/huxing-s([0-9] )\\.html?$ /$1/show.php?&at=huxing&itemid=$2&shi=$3 last;rewrite ^/(house)/([0-9] )/hxinfo-([0-9] )\\.html?$ /$1/show.php?&at=hxinfo&itemid=$2&id=$3 last;rewrite ^/(house)/([0-9] )/xcinfo-([0-9] )\\.html?$ /$1/show.php?&at=xcinfo&itemid=$2&id=$3 last;

#经纪人规则rewrite ^/(broker)/index\\.html$ /$1/index.php last;rewrite ^/(broker)/list-(r|b|t|p|f|l|o|h|n|g|c|y|e|m|u|i)([0-9_] )\\.html?$ /broker/index.php?&$2=$3 last; rewrite ^/(broker)/list-(.*)\\.html?$ /$1/index.php?秏=$2  last;
rewrite ^/(fenxiao)/list-(r|b|t|p|f|l|o|h|n|g|c|y|e|m|u|i)([0-9_] )\\.html?$ /fenxiao/index.php?&$2=$3 last; rewrite ^/(fenxiao)/d-([0-9] )\\.html?$ /$1/detail.php?&itemid=$2  last;#二手房规则rewrite ^/(community)/([0-9] )/(sale|rent)/list\\.html?$ /$1/show.php?&at=$3&itemid=$2 last;rewrite ^/(community)/([0-9] )/(sale|rent)/list(.*).html?$ /$1/show.php?&at=$3&itemid=$2&str=$4  last;rewrite ^/(sale)/map\\.html?$ /map/index.php last;rewrite ^/(rent)/map\\.html?$ /map/rent.php last;rewrite ^/(map)/rent\\.html?$ /map/rent.php last;rewrite ^/(map)/sale\\.html?$ /map/index.php last;rewrite ^/(map)/house\\.html?$ /map/newhouse.php last;rewrite ^/(.*)/list(.*)\\.html?$ /$1/list.php?str=$2 last;rewrite ^/(.*)/list\\.html$ /$1/list.php last;rewrite ^/(.*)/list-(r|b|t|p|f|l|o|h|n|g|c|y|e|m|u|i)([0-9_] )\\.html?$ /$1/list.php?&$2=$3 last; rewrite ^/(.*)/list-k(.*)\\.html?$ /$1/list.php?&k=$2 last;rewrite ^/(.*)/list-(.*)\\.html?$ /$1/list.php?秏=$2  last;rewrite ^/(.*)/pk/(. )?$ /$1/compare.php?&itemid=$2 last;#小 规则rewrite ^/(community)/([0-9] )/?$ /$1/show.php?&at=$3&itemid=$2 last;rewrite ^/(community)/([0-9] )/index\\.html?$ /$1/show.php?&at=$3&itemid=$2 last;rewrite ^/(community)/([0-9] )/(sale|rent|price|map)\\.html?$ /$1/show.php?&at=$3&itemid=$2  last;rewrite ^/(community)/([0-9] )/(sale|rent)/list\\.html?$ /$1/show.php?at=$3&itemid=$2  last;
rewrite ^/(community)/([0-9] )/(sale|rent)/list(.*).html?$ /$1/show.php?&at=$3&itemid=$2&str=$4  last;rewrite ^/(community)/([0-9] )/(sale|rent)/list(.*).html?$ /$1/show.php?&at=$3&itemid=$2&list.php\\?str=$4  last;

rewrite ^/(.*)/search\\.html$ /$1/search.php last;rewrite ^/(.*)/search-k([^/-] )\\.html$ /$1/search.php?&kw=$2 last;rewrite ^/(.*)/search-([^/-] )-p([0-9] )\\.html$ /$1/search.php&kw=$2&page=$3  last;rewrite ^/(.*)/([0-9] )/?$ /$1/show.php?&at=$3&itemid=$2 last;rewrite ^/(.*)/([0-9] )/([a-z] ).html?$ /$1/show.php?&at=$3&itemid=$2;
rewrite ^/(.*)/(.*)\\.htm$ /$1/404.php last;

答:您好,我司查看http://0853fdc.gotoip1.com/news/201903/20/1883.html 是真实存在的链接,并不需要伪静态,因为规则

rewrite ^/(.*)/([0-9] )/([a-z] ).html?$ /$1/show.php?&at=$3&itemid=$2; 引起了跳转,所以提示404,目前我司帮您把规则注释了,现在访问正常了,非常感谢您长期对我司的支持!

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn
赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 资讯网页打不开 帮调整一下吧 谢谢

登录

找回密码

注册