Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. 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