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

設置偽靜態后,論壇首頁會出現動態地址。

3249 3 0提示:支持鍵盤翻頁<-左 右-> diy22 發表于 2022-12-8 02:57 帖子模式

http://www.9999xn.com/forum.php         ↑這里的鏈接是動態地址。 -------------------------------------------------------------------- 設置偽靜態后,論壇首頁會出現動 ... 查看全文

    組圖打開中,請稍候......

評論3個評論

470342341發表于  2022-12-18 16:01:34
這個都這樣  介意的話 可以自己修改 代碼:
修改首頁最后發表偽靜態在template\default\forum\discuz.htm頁面

查找:
forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost  
替換為
thread-$forum[lastpost][tid]-1-1.html
說好的一起發表于  2022-12-9 16:07:18


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

  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
復制代碼




Killer發表于  2022-12-9 10:58:38
這是進入最后的回復位置,需要帶參數。DZ對于此位置二十年來都是這么處理的,搜索引擎的規則對此也是適配的,不會造成你說的問題
  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區 ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2025-7-3 20:05 , Processed in 0.050351 second(s), 17 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2025 Discuz! Team.

關燈 在本版發帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表