Board logo

標題: 加上htaccess後網頁即開不出來? [打印本頁]

作者: admin    時間: 2012-9-21 14:01     標題: 加上htaccess後網頁即開不出來?

開網頁都會跳出這個畫面。


作者: admin    時間: 2012-9-21 14:03

經過測試發現

在 .htaccess 中

RewriteRule . http://magic.pumonet.com [L]

把這行改成

RewriteRule . /page-page.html [L]

即可正常了。
作者: admin    時間: 2012-9-21 14:31

【在發表這一篇文章的小插曲】

一開始發表的標題是  加上. htaccess後網頁即開不出來?(我故意把 . htaccess 中間空一隔不然無法發表)
結果都會一直出現下面錯誤,無法發表


Not Acceptable
An appropriate representation of the requested resource /post.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



後來我把 標題改成  加上htaccess後網頁即開不出來?
少了一個 點
就可以發表了,於是我在同一家主機商的另一台主機上的Discuz論壇上發表 加上. htaccess後網頁即開不出來?

竟然可以,這可妙了,同一家公司的二台不同主機,竟然一台可以另一台不行。

於是我打電話去遠振資訊問

他們查詢的結果原來是不行的那一台主機上的

mod_security
設定的規則,可能剛好有設定 . htaccess 這組字串上去,所以導致我在發表文章時,出現 . htaccess 的字樣時會把這個資料檔掉而無法發表的情況。

有關於mod_security的相關介紹:http://www.xspace.idv.tw/bo_blog/read.php?139




歡迎光臨 拍樂得-網路行銷論壇 (http://www.palada.com.tw/) Powered by Discuz! 6.0.0