登錄 注冊(cè) 發(fā)新帖 |
youyou
|
求助:twcms2.0偽靜態(tài),唯獨(dú)首頁不能偽靜態(tài),其他正常求幫助求大神指點(diǎn)下,我的是IIS7.5的。。我先說情況吧,,
我在開動(dòng)態(tài)的時(shí)候,沒開偽靜態(tài) 首頁既然可以以index.html打開. 列表的index.php?cate--cid-2.html 內(nèi)容的:index.php?show--cid-8-id-226.html 問題來了,當(dāng)我用規(guī)則,在通王偽靜態(tài)默認(rèn) <rule name="TWCMS Rule /" stopProcessing="true"> <match url="(.+)" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php?rewrite={R:1}" /> 然而,頁面幾乎全部沒有錯(cuò),就是打開首頁,會(huì)出現(xiàn)404...暈死 其他內(nèi)容頁面規(guī)則列表:/youyou/ 內(nèi)容是/8_226.html 首頁出現(xiàn)這樣:如下圖 ![]() 非常急切求救中,,,補(bǔ)充下,以index.php來打開,就可以,,但在分類頁面,他默認(rèn)首頁那個(gè)鏈接就是html 我今天開著偽靜態(tài)里,,大神麻煩快出來,地址www.yoyomm.com
#1樓
|
|
發(fā)帖時(shí)間:2014-9-22 |
查看數(shù):0 |
回復(fù)數(shù):5
|
huaqi789
|
木有用過7.5 。、
2014-9-22
#2樓
|
youyou
|
謝謝,已經(jīng)解決了,
,,我找那個(gè)服務(wù)商都解決不了,,生成個(gè)靜態(tài)index.html
2014-9-22
#3樓
|
youyou
|
<?php ob_start(); @readfile("http://www.yoyomm.com/index.php"); $text = ob_get_flush(); $myfile = fopen("index.html","w"); $text = str_replace ("{counent}",$string,$text); fwrite($myfile,$text); ob_clean(); ?>建立更XX.php 放在根目錄就得了,,會(huì)產(chǎn)生2個(gè)頁面,,一個(gè)是臨時(shí)的myfile.html 一個(gè)就是index.html
2014-9-22
#4樓
|
youyou
|
附上方法,,地址修改下就可以了,比較笨的方法,實(shí)在搞不懂我的主頁干嘛這樣
2014-9-22
#5樓
|
Yangkunye.com
|
通王網(wǎng)校,點(diǎn)擊推廣鏈接:http://www.tongwang.net/index.php?uid=1648 去看看
2014-9-22
#6樓
|
游客組
|
|