久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

返回列表 發(fā)帖
查看: 3246|回復(fù): 3

[已處理] 設(shè)置偽靜態(tài)后,論壇首頁會出現(xiàn)動態(tài)地址。

5

主題

5

回帖

13

積分

初學(xué)乍練

貢獻
0 點
金幣
2 個
樓主
發(fā)表于 2022-12-8 02:57:33 | 只看樓主 |只看大圖 |倒序瀏覽 |閱讀模式
BUG反饋
程序版本: X3.4
瀏覽器: IE10 
BUG地址: 隱藏內(nèi)容
BUG截圖: -
測試用戶名: 隱藏內(nèi)容
測試密碼: 隱藏內(nèi)容
http://www.9999xn.com/forum.php

        ↑這里的鏈接是動態(tài)地址。
--------------------------------------------------------------------
設(shè)置偽靜態(tài)后,論壇首頁會出現(xiàn)動態(tài)地址。
點進去后所有的鏈接都是動態(tài)地址,沒有隱藏動態(tài)路徑。
會造成搜索引擎同時收錄動態(tài)和偽靜態(tài)頁面,會判定重復(fù)頁面,影響收錄。

1 貢獻+1 金幣

最佳答案

這個都這樣  介意的話 可以自己修改 代碼:
修改首頁最后發(fā)表偽靜態(tài)在template\default\forum\discuz.htm頁面

查找:
forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost  
替換為
thread-$forum[lastpost][tid]-1-1.html
回復(fù)

使用道具 舉報

49

主題

2295

回帖

3萬

積分

管理員

貢獻
41 點
金幣
28579 個
沙發(fā)
發(fā)表于 2022-12-9 10:58:38 | 只看Ta
這是進入最后的回復(fù)位置,需要帶參數(shù)。DZ對于此位置二十年來都是這么處理的,搜索引擎的規(guī)則對此也是適配的,不會造成你說的問題
回復(fù)

使用道具 舉報

17

主題

126

回帖

158

積分

漸入佳境

貢獻
2 點
金幣
2 個
板凳
發(fā)表于 2022-12-9 16:07:18 | 只看Ta


用文本文件家創(chuàng)建一個(.htaccess)名字的文件,不含括號,把他放入根目錄,文件里面的內(nèi)容如下

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteCond %{QUERY_STRING} ^(.*)$
  4. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
  5. RewriteCond %{QUERY_STRING} ^(.*)$
  6. RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
  13. RewriteCond %{QUERY_STRING} ^(.*)$
  14. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
  15. RewriteCond %{QUERY_STRING} ^(.*)$
  16. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
  17. RewriteCond %{QUERY_STRING} ^(.*)$
  18. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
  19. RewriteCond %{QUERY_STRING} ^(.*)$
  20. RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1
復(fù)制代碼




回復(fù)

使用道具 舉報

40

主題

179

回帖

261

積分

爐火純青

貢獻
2 點
金幣
21 個
地板
發(fā)表于 2022-12-18 16:01:34 | 只看Ta
這個都這樣  介意的話 可以自己修改 代碼:
修改首頁最后發(fā)表偽靜態(tài)在template\default\forum\discuz.htm頁面

查找:
forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost  
替換為
thread-$forum[lastpost][tid]-1-1.html
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

  • 關(guān)注公眾號
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號 |皖公網(wǎng)安備34010302002376號 )|網(wǎng)站地圖|star

GMT+8, 2025-7-3 10:41 , Processed in 0.059098 second(s), 16 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表