【在發表這一篇文章的小插曲】
一開始發表的標題是 加上
. 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