NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
c0427
V2EX  ›  NGINX

Dicuz! 主题分类伪静态问题求教

  •  
  •   c0427 · Dec 25, 2014 · 2663 views
    This topic created in 4237 days ago, the information mentioned may be changed or developed.

    想给论坛主题列表的主题分类修改为伪静态显示,因为 robots.txt 里设置了禁止搜索引擎收录带有 ? 的链接。

    网站用的是 nginx 服务器,现在添加了以下伪静态规则:

    rewrite ^(.*)/type-(\d+)-([0-9]+).html $1/forum.php\?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&$5 last;

    但是网站上依旧无法正常显示,请熟悉这方面的 V 友指教这种伪静态怎么写?我应该怎么修改?

    附上网站的链接:

    主题列表: http://bbs.antzone.cn/forum-rainmeter-1.html
    主题分类: http://bbs.antzone.cn/type-210-980.html

    http://ww2.sinaimg.cn/bmiddle/a4684796gw1enlz2qh5zkj20e709dabl.jpg

    3 replies    2014-12-25 17:25:44 +08:00
    c0427
        1
    c0427  
    OP
       Dec 25, 2014
    @wzxjohn @Havee @freetg @lnkisi @sujin190 请求各位高手帮忙。
    c0427
        2
    c0427  
    OP
       Dec 25, 2014
    修改好了,教程分享出来了: http://bbs.antzone.cn/thread-8813-1-1.html
    xuwenmang
        3
    xuwenmang  
       Dec 25, 2014
    写的不错,一直没空看DZ。哎。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 02:22 · PVG 10:22 · LAX 19:22 · JFK 22:22
    ♥ Do have faith in what you're doing.