Wai; 發表於 2012-5-27 15:53:06

網址問題

我看見貴站進入帖子後的網址都是thread-xxxxx-x-x.html
請問如何辦到的呢;

Tenny 發表於 2012-5-27 16:19:22

後台開啓 URL 靜態化

Wai; 發表於 2012-5-27 17:11:21

Tenny 發表於 2012-5-27 04:19 PM static/image/common/back.gif
後台開啓 URL 靜態化

如何開啓?

Tenny 發表於 2012-5-27 18:36:46

Wai; 發表於 2012-5-27 05:11 PM static/image/common/back.gif
如何開啓?

講埋比你聽仲要問?:60;

多D入後台熟習下.

Wai; 發表於 2012-5-27 19:27:59

Tenny 發表於 2012-5-27 06:36 PM static/image/common/back.gif
講埋比你聽仲要問?

多D入後台熟習下.

唔該了...{:4_305:}

Wai; 發表於 2012-5-27 22:41:59

Tenny 發表於 2012-5-27 06:36 PM static/image/common/back.gif
講埋比你聽仲要問?

多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

Tenny 發表於 2012-5-27 23:54:39

Wai; 發表於 2012-5-27 10:41 PM static/image/common/back.gif
set左都唔得
Not Found



根目錄要有 .htaccess 檔.

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

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

# Rewrite 系統規則請勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-(+)\.html$ portal.php?mod=view&aid=$1&page={page}&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-(+)-(+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-(+)-(+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-(+)\.html$ archiver/index.php?action=$1&value=$2&%1

Wai; 發表於 2012-5-28 06:32:31

Tenny 發表於 2012-5-27 11:54 PM static/image/common/back.gif
根目錄要有 .htaccess 檔.

內容就是

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

Tenny 發表於 2012-5-28 10:37:17

Wai; 發表於 2012-5-28 06:32 AM static/image/common/back.gif
有冇得比我直接download
唔係幾明..

放在論壇根目錄

Wai; 發表於 2012-5-28 18:29:54

Tenny 發表於 2012-5-28 10:37 AM static/image/common/back.gif
放在論壇根目錄

一樣係咁
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 atPort 80
頁: [1] 2
查看完整版本: 網址問題