why the website only runs .htm

來源: butnot.asp? 2005-04-22 07:19:21 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (888 bytes)
Some one passed me a challege: why the website only runs .htm file, but not .asp?

when launch the website, say, http://database.mygroup.org, it runs the defaul home.asp page with "hello world". The physicial home.asp resides on c:\database; and the IE address bar shows http://database.mygroup.org; not http://database.mygroup.org/home.asp.

However, when I put a line of code to redirect to myfirstpage.asp, or, add a link as My First Page, it shows the 404 file not found error; if I change both attmpts to myfirstpage.htm page, it works

The problem is: why the website only runs with .htm file, but not .asp?

Since I do not know the details of how the IIS had been configured, can any one here give me tips to point out why may be the resons, so that I can save my time to re-configure the IIS 5.0?

Many thanks.

所有跟帖: 

我不懂這個, 但對網頁有些興趣, 於是找了些內容給你 -老靴- 給 老靴 發送悄悄話 (832 bytes) () 04/22/2005 postreply 07:43:13

回複:why the website only runs .htm -紅袖子- 給 紅袖子 發送悄悄話 (133 bytes) () 04/22/2005 postreply 08:07:50

回複:回複:why the website only runs .htm -WhyNot.asp- 給 WhyNot.asp 發送悄悄話 (38 bytes) () 04/22/2005 postreply 08:45:41

must be a path error since -Grant- 給 Grant 發送悄悄話 (10 bytes) () 04/22/2005 postreply 08:49:44

because you dont have -Grant- 給 Grant 發送悄悄話 (122 bytes) () 04/22/2005 postreply 08:49:01

回複:because you dont have -IDoHaveAll- 給 IDoHaveAll 發送悄悄話 (51 bytes) () 04/22/2005 postreply 08:56:17

how about the case? -Grant- 給 Grant 發送悄悄話 (220 bytes) () 04/22/2005 postreply 09:04:32

not case sensitive; open all.. -NotTheCase- 給 NotTheCase 發送悄悄話 (72 bytes) () 04/22/2005 postreply 09:16:49

In terms of security, I meant -Grant- 給 Grant 發送悄悄話 (178 bytes) () 04/23/2005 postreply 13:42:12

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”