WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

I'm working on a WordPress project set up with MAMP on localhost. I try testing the site on internet explorer with VirtualBoxVM by browsing to my local ip. My problem is, wp_head() outputs absolute path's to css and js resources, so the VirtualBoxVM Browser tries to load http://localhost:[port]/wp-content/themes/twentytwelve-[xy]/style.css?ver=3.5 which will, of course, fail.

How do I get VirtualBoxVM to load these resources properly?

Maybe I can make the resource urls relative?

share|improve this question
up vote 1 down vote accepted

If I understand you, don't use 'localhost'. That only works if you are testing from the same machine that is running the server. (A virtualized machine counts as a different machine.) Give your server (the machine running the server) a static IP address-- something like and use that instead of 'localhost'. That will work for any machine on your subnet.

share|improve this answer

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.