POST TIME:2017-12-13 22:32
dedecms5.7問(wèn)答模塊實(shí)現(xiàn)偽靜態(tài)的方法步驟詳細(xì)的解說(shuō)下;
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 RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files |