關(guān)于如何設(shè)置DedeCMS問答模塊rewrite偽靜態(tài)教程 我們?cè)谇懊嬗薪榻B過 下面我們將介紹
	dedecms5.7 問答模塊實(shí)現(xiàn)偽靜態(tài)的方法步驟詳細(xì)的解說下;
	1、把rewrite文件放到網(wǎng)站根目錄;可選;httpd.ini規(guī)則則按照原有的規(guī)則來(lái);及現(xiàn)在的規(guī)則;
	2、在iis中的isapi中支持rewrite;
	3、在系統(tǒng)后臺(tái)選擇啟用rewrite;
	4、重啟iis;
	5、修改必要文件,主要是index.php、index.htm、question.htm、browser.htm、question.php、browser.php
	   主要是把鏈接地址<a href="?ct=browser&<?php echo $tidstr.$mulappname;?>&lm=2">
	   改為:<a href="/ask/?ct=browser&<?php echo $tidstr.$mulappname;?>&lm=3">
	   這幾個(gè)文件分別在:ask/control    /ask/templates/default  以及首頁(yè)的index.php
	當(dāng)然以上是在后臺(tái)支持rewrite的情況下,操作的;
	httpd.ini規(guī)則:
	 
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^/ask/index/.html$ /ask/index/.php
RewriteRule ^/ask/([0-9]+)$ /ask//?ct=browser&tid=$1
RewriteRule ^/ask/t([0-9]+)$ /ask//?ct=browser&tid2=$1
RewriteRule ^/ask/([0-9]+)/.html$ /ask//?ct=question&askaid=$1
| 
 
 | 
新聞熱點(diǎn)
疑難解答
圖片精選