Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When developing pages, I like to load them in my browser locally to see how they look rather than have to deploy them to the server every time. I'm using Lift and server deployment takes a few seconds, and just running Lift puts a heavy strain on my old laptop. The problem is absolute paths e.g. /css/main.css, while correct on the server, will cause the browser to search from the root filesystem e.g. file:///css/main.css when I open the page locally.

Is there a technique to be able to work with absolute paths, yet somehow trick the browser into using a different base to calculate the paths from when loading the pages locally? A browser plug-in perhaps?

share|improve this question
up vote 2 down vote accepted

You probably want to make your browser run a small webserver: https://addons.mozilla.org/en-US/firefox/addon/browser-server/

share|improve this answer
Ah-ha, of course! I think I'll just run a standalone but lightweight web server. Thanks! – Owen Fraser-Green May 11 '11 at 11:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.