Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • 2 ответа
  • 1 имеет эту проблему
  • 52 просмотра
  • Последний ответ от 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