我的腳本是:Apache的Rewrite模塊 后臺也開啟了SEO偽靜態(tài)如下圖: 查看全文
請教下,我上面紅色部分是什么意思?我也是開了偽靜態(tài),而且正常使用中。但是不明白上面紅色是什么意思? |
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)[ DISCUZ_CODE_0 ]quot;> order deny,allow deny from all </FilesMatch> # 將 RewriteEngine 模式打開 RewriteEngine On # 修改以下語句中的 /discuz 為您的論壇目錄地址,如果程序放在根目錄中,請將 /discuz 修改為 / RewriteBase / # Rewrite 系統(tǒng)規(guī)則請勿修改 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 |
按這樣改,內(nèi)容頁轉(zhuǎn)成靜態(tài)了,但列表頁還是動態(tài)地址 |
RewriteBase /discuz 改為 RewriteBase / 試試看 |
手機版|小黑屋|Discuz! 官方交流社區(qū)
( 皖ICP備16010102號 |皖公網(wǎng)安備34010302002376號 )|網(wǎng)站地圖|
GMT+8, 2025-10-21 14:12 , Processed in 0.088197 second(s), 25 queries , Redis On.
Powered by Discuz! X5.0 Licensed
© 2001-2025 Discuz! Team.