說我有這樣一個環節的public_html/index.html的:躲在鏈接.html擴展
<a href="pictures/index.html">Link to picture</a>
由於「鏈接的圖片」有它自己的文件夾,並使用的index.html,通常該分機如果我輸入「www.mywebsite.com/pictures」,將會被隱藏。但如果我第一次訪問「www.mywebsite.com」,然後點擊該鏈接,它會在地址欄中顯示爲「www.mywebsite.com/pictures/index.html」。我將如何隱藏鏈接中的「index.html」?我試過這個,但它不起作用:
<a href="pictures/">Link to picture</a> <---this simply opens the file directory
謝謝。
你是在本地還是在這個測試服務器? – sinisterfrog