查看: 2304|回復: 11

[已解決] 網址問題

[複製鏈接]
發表於 2012-5-27 15:53:06 | 顯示全部樓層 |閱讀模式
[隱藏]

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆玩轉社區。

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
我看見貴站進入帖子後的網址都是thread-xxxxx-x-x.html
請問如何辦到的呢;
發表於 2012-5-27 16:19:22 | 顯示全部樓層
後台開啓 URL 靜態化
回復

使用道具 舉報

 樓主| 發表於 2012-5-27 17:11:21 | 顯示全部樓層
Tenny 發表於 2012-5-27 04:19 PM
後台開啓 URL 靜態化

如何開啓?
回復

使用道具 舉報

發表於 2012-5-27 18:36:46 | 顯示全部樓層
Wai; 發表於 2012-5-27 05:11 PM
如何開啓?

講埋比你聽仲要問?

多D入後台熟習下.

本帖子中包含更多資源

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
回復

使用道具 舉報

 樓主| 發表於 2012-5-27 19:27:59 | 顯示全部樓層
Tenny 發表於 2012-5-27 06:36 PM
講埋比你聽仲要問?

多D入後台熟習下.

唔該了...
回復

使用道具 舉報

 樓主| 發表於 2012-5-27 22:41:59 | 顯示全部樓層
Tenny 發表於 2012-5-27 06:36 PM
講埋比你聽仲要問?

多D入後台熟習下.

set左都唔得
Not Found

The requested URL /thread-18-1-1.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2 Server at 34link.com Port 80
回復

使用道具 舉報

發表於 2012-5-27 23:54:39 | 顯示全部樓層
Wai; 發表於 2012-5-27 10:41 PM
set左都唔得
Not Found


根目錄要有 .htaccess 檔.

內容就是
  1. # 將 RewriteEngine 模式打開
  2. RewriteEngine On

  3. # 修改以下語句中的 /discuz 為你的論壇目錄地址,如果程序放在根目錄中,請將 /discuz 修改為 /
  4. RewriteBase /

  5. # Rewrite 系統規則請勿修改
  6. RewriteCond %{QUERY_STRING} ^(.*)$
  7. RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
  8. RewriteCond %{QUERY_STRING} ^(.*)$
  9. RewriteRule ^article-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page={page}&%1
  10. RewriteCond %{QUERY_STRING} ^(.*)$
  11. RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  12. RewriteCond %{QUERY_STRING} ^(.*)$
  13. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  14. RewriteCond %{QUERY_STRING} ^(.*)$
  15. RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
  16. RewriteCond %{QUERY_STRING} ^(.*)$
  17. RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
  18. RewriteCond %{QUERY_STRING} ^(.*)$
  19. RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
  20. RewriteCond %{QUERY_STRING} ^(.*)$
  21. RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
複製代碼
回復

使用道具 舉報

 樓主| 發表於 2012-5-28 06:32:31 | 顯示全部樓層
Tenny 發表於 2012-5-27 11:54 PM
根目錄要有 .htaccess 檔.

內容就是

有冇得比我直接download
唔係幾明..
回復

使用道具 舉報

發表於 2012-5-28 10:37:17 | 顯示全部樓層
Wai; 發表於 2012-5-28 06:32 AM
有冇得比我直接download
唔係幾明..

放在論壇根目錄

本帖子中包含更多資源

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
回復

使用道具 舉報

 樓主| 發表於 2012-5-28 18:29:54 | 顯示全部樓層
Tenny 發表於 2012-5-28 10:37 AM
放在論壇根目錄

一樣係咁
Not Found

The requested URL /thread-20-1-1.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2 Server at  Port 80
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|排行榜|幫助|希望國度

GMT+8, 2024-5-3 16:50 , Processed in 0.071037 second(s), 15 queries .

Theme Design By Tenny (希望國度)| Version: 10.0

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表