Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

在dx2时发贴后。10分钟内baidu就能收录。升级。3观察一个多月了,收录慢总的还不稳。

[复制链接]
cnmt 发表于 2013-9-5 09:49:08 | 显示全部楼层 |阅读模式
在dx2时发贴后。10分钟内baidu就能收录。升级。3后,观察一个多月了,收录慢,总收录还不稳。还在慢慢下降。
 楼主| cnmt 发表于 2013-9-5 11:46:57 | 显示全部楼层
安装了蜘蛛记录插件。发现蜘蛛爬行的网址都多了一个/bbs/是怎么回事呢。
蜘蛛中记录的是   http://www.abc.com/bbs/bbs/forum-13-1.html
但实际的网址是http://www.abc.com/bbs/forum-13-1.html

是插件的问题还是网站设置的问题呢。。。用的是nginx  nginx里的伪静态是加了/bbs/的要不页面的伪静态显示错误。



rewrite ^([^\.]*)/bbs/topic-(.+)\.html$ $1/bbs/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/bbs/article-([0-9]+)-([0-9]+)\.html$ $1/bbs/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/bbs/forum-(\w+)-([0-9]+)\.html$ $1/bbs/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/bbs/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/bbs/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/bbs/group-([0-9]+)-([0-9]+)\.html$ $1/bbs/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/bbs/space-(username|uid)-(.+)\.html$ $1/bbs/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/bbs/blog-([0-9]+)-([0-9]+)\.html$ $1/bbs/home.php?mod=space&uid=$2&do=blog&id=$3 last;
rewrite ^([^\.]*)/bbs/(fid|tid)-([0-9]+)\.html$ $1/bbs/index.php?action=$2&value=$3 last;
if (!-e $request_filename) {
        return 404;
}
回复

使用道具 举报

cornersoft 发表于 2013-9-5 14:07:56 | 显示全部楼层
cnmt 发表于 2013-9-5 11:46
安装了蜘蛛记录插件。发现蜘蛛爬行的网址都多了一个/bbs/是怎么回事呢。
蜘蛛中记录的是   http://www.ab ...

你改错地方了……
回复

使用道具 举报

 楼主| cnmt 发表于 2013-9-6 08:17:54 | 显示全部楼层
cornersoft 发表于 2013-9-5 14:07
你改错地方了……

找到问题了是插件的问题。换用其它插件就可显示正常了。规则你觉得是哪里问题叫绝。
回复

使用道具 举报

cornersoft 发表于 2013-9-10 14:38:42 | 显示全部楼层
cnmt 发表于 2013-9-6 08:17
找到问题了是插件的问题。换用其它插件就可显示正常了。规则你觉得是哪里问题叫绝。

一般rewrite规则是不需要修改的,只需要确定网站的根域就可以了。不过nginx的话我不是很了解,至少Apache是这么改的
回复

使用道具 举报

納蘭春成 发表于 2013-10-15 13:57:42 | 显示全部楼层
插件不要乱用,要是有好的插件,大家分享一下
回复

使用道具 举报

sernet 发表于 2013-10-15 17:12:38 | 显示全部楼层
支持楼上的。
回复

使用道具 举报

wz45857913 发表于 2013-10-17 11:25:14 | 显示全部楼层
得要高人指点才好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-24 05:08 , Processed in 0.040893 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表