搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can you get firefox to work locally with the windows subst command?

  • 2 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 SimonOC

more options

I want to test my website locally using the windows subst command to emulate the root of my website. It works perfectly with IE8 (except IE8 displays the layout different to firefox) but will not work with Firefox. All of the images, styles sheets and anything with a root path does not work. If I use a relative path (../../ for example) to the objects they works fine.

How can I view web pages locally using a website root path?

I want to test my website locally using the windows subst command to emulate the root of my website. It works perfectly with IE8 (except IE8 displays the layout different to firefox) but will not work with Firefox. All of the images, styles sheets and anything with a root path does not work. If I use a relative path (../../ for example) to the objects they works fine. How can I view web pages locally using a website root path?

被選擇的解決方法

Firefox doesn't allow to access local files directly.
It is always best to use relative addressing.

See also:

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

Firefox doesn't allow to access local files directly.
It is always best to use relative addressing.

See also:

more options

Now I understand why Firefox does not load local pages and and IE does. I followed the link and tried all the various solutions. The noscript version did not work (but at least I have better security now) and the \\\\\ UNC path trick did nothing. Eventually I downloaded the IEtab plugin and that worked perfectly. All I wanted to do was to check webpages locally before submitting to my website and the IEtab plugin worked perfectly. Thanks