男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

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

標(biāo)題: 設(shè)置偽靜態(tài)后,論壇首頁(yè)會(huì)出現(xiàn)動(dòng)態(tài)地址。 [打印本頁(yè)]

作者: diy22    時(shí)間: 2022-12-8 02:57
標(biāo)題: 設(shè)置偽靜態(tài)后,論壇首頁(yè)會(huì)出現(xiàn)動(dòng)態(tài)地址。
http://m.sdtechgong.com.cn/forum.php
(, 下載次數(shù): 60)
        ↑這里的鏈接是動(dòng)態(tài)地址。
--------------------------------------------------------------------
設(shè)置偽靜態(tài)后,論壇首頁(yè)會(huì)出現(xiàn)動(dòng)態(tài)地址。
點(diǎn)進(jìn)去后所有的鏈接都是動(dòng)態(tài)地址,沒(méi)有隱藏動(dòng)態(tài)路徑。
會(huì)造成搜索引擎同時(shí)收錄動(dòng)態(tài)和偽靜態(tài)頁(yè)面,會(huì)判定重復(fù)頁(yè)面,影響收錄。


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

用文本文件家創(chuàng)建一個(gè)(.htaccess)名字的文件,不含括號(hào),把他放入根目錄,文件里面的內(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ù)制代碼





作者: 470342341    時(shí)間: 2022-12-18 16:01
這個(gè)都這樣  介意的話(huà) 可以自己修改 代碼:
修改首頁(yè)最后發(fā)表偽靜態(tài)在template\default\forum\discuz.htm頁(yè)面

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




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