97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

Discuz! 官方交流社區(qū)

標題: 設置偽靜態(tài)后,論壇首頁會出現(xiàn)動態(tài)地址。 [打印本頁]

作者: diy22    時間: 2022-12-8 02:57
標題: 設置偽靜態(tài)后,論壇首頁會出現(xiàn)動態(tài)地址。
http://r615.cn/forum.php
(, 下載次數(shù): 18)
        ↑這里的鏈接是動態(tài)地址。
--------------------------------------------------------------------
設置偽靜態(tài)后,論壇首頁會出現(xiàn)動態(tài)地址。
點進去后所有的鏈接都是動態(tài)地址,沒有隱藏動態(tài)路徑。
會造成搜索引擎同時收錄動態(tài)和偽靜態(tài)頁面,會判定重復頁面,影響收錄。


作者: Killer    時間: 2022-12-9 10:58
這是進入最后的回復位置,需要帶參數(shù)。DZ對于此位置二十年來都是這么處理的,搜索引擎的規(guī)則對此也是適配的,不會造成你說的問題
作者: 說好的一起    時間: 2022-12-9 16:07
(, 下載次數(shù): 19)

用文本文件家創(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
復制代碼





作者: 470342341    時間: 2022-12-18 16:01
這個都這樣  介意的話 可以自己修改 代碼:
修改首頁最后發(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




歡迎光臨 Discuz! 官方交流社區(qū) (http://r615.cn/) Powered by Discuz! X5.0