phpwind中的网址形似
http://bbs.weiphone.com/read-htm-tid-294487-fpage-2-page-92.html
其中的fpage是用来知道这个帖子在这个版块列表里在第4页,但帖子因为最后的回复时间不同,所以这个排列是经常变的,所以说无论这个fpage无论是什么数字,所得到的内容是一样的,所以容易影响搜索引擎误收录,造成标题相同,影响搜索引擎优化。
所以咨询了phpwind的工程师,这个是可以安全去掉的,只是会影响到用户在阅读帖子时,如果点
上面的导航时会回到第一页。如下图:
以phpwind7.32为类,
修改thread.php
347行
$线['tpcurl'] =“read.php?工贸署= $线[工业贸易署]“.($页”1?“&fpage = $页”:”);
为
$线['tpcurl'] =“read.php?工贸署= $线[工业贸易署]”;
修改
/ / $线['ispage '].=” ..“1的HREF = \”read.php?工贸署= $线[工贸]&fpage = $页&
页面= $ numofpage \“”$ numofpage“/ 1”“;
为
$线['ispage '].=” .. <a href=\”read.php?tid=$thread[tid]&page=$numofpage\”> $ numofpage“/ 1”“;修改
/ / $线['ispage '].=” <a href=\”read.php?tid=$thread[tid]&fpage=$page&page=$j\”> $ ĵ“/ 1”“;
为
$线['ispage '].=” <a href=\”read.php?tid=$thread[tid]&page=$j\”> $ ĵ“/ 1”“;
再修改:read.php
184行
/ / $页= numofpage($数,$页,$ numofpage,“read.php?工贸署= $工贸&fpage = $ fpage($ urladd }&”);
为
$页= numofpage($数,$页,$ numofpage,“read.php?工贸署= $&”);
这个修改后,链接中的fpage就没有了,而且也不影响之前的已经收录的fpage。
还有一个问题,“只看作者本人”,“风格”,会造成很多重复的链接:
如图
所以这个可以针对谷歌进行优化,禁止它收录:
在的robots.txt中增加:
用户代理:Googlebot会
不允许:/读媒-工贸- *-的UID – *.的HTML
不允许:/读媒-工贸- *- skinco – *.的HTML




a free online dating site
October 24, 2011 at 6:31 am
Recommeneded websites…
[...]Here are some of the sites we recommend for our visitors[...]……
relationship Problems
October 24, 2011 at 7:25 am
Superb website…
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……
Location Ile Maurice
October 24, 2011 at 1:55 pm
Websites you should visit…
[...]below you’ll find the link to some sites that we think you should visit[...]……
black ops auto aim
October 24, 2011 at 2:22 pm
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
lil wayne lil wayne
October 24, 2011 at 2:39 pm
You should check this out…
[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……
web scribble
October 24, 2011 at 3:21 pm
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……
wholesale power balance bracelets
October 24, 2011 at 3:32 pm
Read was interesting, stay in touch……
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]……
outdoor wilderness survival
October 24, 2011 at 5:04 pm
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……
buy zynga poker chips
October 24, 2011 at 6:04 pm
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
facebook poker
October 24, 2011 at 6:13 pm
You should check this out…
[...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……
lake forest
December 15, 2011 at 1:19 am
Websites worth visiting…
[...]here are some links to sites that we link to because we think they are worth visiting[...]……
how to eat a girl out
December 15, 2011 at 9:01 am
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
grants for single mothers
December 15, 2011 at 8:24 pm
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
fossil sonnenbrillen
December 16, 2011 at 7:35 am
Great website…
[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……