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

返回列表 發(fā)帖
查看: 8336|回復(fù): 5

[求助] 關(guān)于X3.4版本的偽靜態(tài)問(wèn)題

4

主題

2

回帖

7

積分

初學(xué)乍練

貢獻(xiàn)
0 點(diǎn)
金幣
1 個(gè)
樓主
發(fā)表于 2019-11-10 23:04:46 | 只看樓主 |只看大圖 |倒序?yàn)g覽 |閱讀模式
我的腳本是:Apache的Rewrite模塊
后臺(tái)也開(kāi)啟了SEO偽靜態(tài)如下圖:

偽靜態(tài)規(guī)則是:
RewriteEngine On
RewriteBase /discuz

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.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-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1


設(shè)置過(guò)后,網(wǎng)站版塊頁(yè)面無(wú)法打開(kāi)

我知道答案 回答被采納將會(huì)獲得1 貢獻(xiàn) 已有5人回答
回復(fù)

使用道具 舉報(bào)

17

主題

269

回帖

547

積分

應(yīng)用開(kāi)發(fā)者

貢獻(xiàn)
2 點(diǎn)
金幣
165 個(gè)
QQ
沙發(fā)
發(fā)表于 2019-11-10 23:10:56 | 只看Ta
RewriteBase /discuz
改為
RewriteBase /
試試看
回復(fù)

使用道具 舉報(bào)

4

主題

2

回帖

7

積分

初學(xué)乍練

貢獻(xiàn)
0 點(diǎn)
金幣
1 個(gè)
板凳
 樓主| 發(fā)表于 2019-11-10 23:32:33 | 只看Ta
杰瑞科技 發(fā)表于 2019-11-10 23:10
RewriteBase /discuz
改為
RewriteBase /

好了,謝謝
回復(fù)

使用道具 舉報(bào)

0

主題

1

回帖

3

積分

初學(xué)乍練

貢獻(xiàn)
0 點(diǎn)
金幣
1 個(gè)
地板
發(fā)表于 2019-12-11 16:33:14 | 只看Ta
按這樣改,內(nèi)容頁(yè)轉(zhuǎn)成靜態(tài)了,但列表頁(yè)還是動(dòng)態(tài)地址
回復(fù)

使用道具 舉報(bào)

81

主題

341

回帖

457

積分

爐火純青

貢獻(xiàn)
2 點(diǎn)
金幣
5 個(gè)
QQ
5#
發(fā)表于 2019-12-12 20:52:22 | 只看Ta
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)[        DISCUZ_CODE_0        ]quot;>

    order deny,allow
   
deny from all


</FilesMatch>



# 將 RewriteEngine 模式打開(kāi)

RewriteEngine On



# 修改以下語(yǔ)句中的 /discuz 為您的論壇目錄地址,如果程序放在根目錄中,請(qǐng)將 /discuz 修改為 /

RewriteBase /



# Rewrite 系統(tǒng)規(guī)則請(qǐng)勿修改

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.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-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
回復(fù)

使用道具 舉報(bào)

81

主題

341

回帖

457

積分

爐火純青

貢獻(xiàn)
2 點(diǎn)
金幣
5 個(gè)
QQ
6#
發(fā)表于 2019-12-12 20:53:39 | 只看Ta
請(qǐng)教下,我上面紅色部分是什么意思?我也是開(kāi)了偽靜態(tài),而且正常使用中。但是不明白上面紅色是什么意思?
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

  • 關(guān)注公眾號(hào)
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機(jī)版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號(hào) |皖公網(wǎng)安備34010302002376號(hào) )|網(wǎng)站地圖|star

GMT+8, 2025-9-19 14:34 , Processed in 0.085186 second(s), 40 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表