简体   繁体   中英

testing website offline with .html extension

I'm working on my website and I always test it offline before I upload it to the server. If I use the .htm extension to link different pages together, everything works like it should offline but if I change it to .html then it doesn't work.

So when I'm testing my website offline and if I click on the "news" button, it takes me to the news page which is good. If I change the extension to ".html" instead of ".htm", it stops working offline. It doesn't take me to the news page after that.

<li id="news"> <a href="news/index.htm">News</a></li>    

Is there a way to get around this? I'd like to be able to test my website offline and still use the correct extensions. Why does it work only with .htm and not .html?

确保代码和文件中的扩展名正确。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM