Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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