Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer (http://www.microsoft.com/web/wordpress).

All works fine when we load WP locally (e.g. http://localhost/mywordpresssite), the graphics load fine. But when I enter the IP address or hostname accessing the site from a machine other than locally, none of the graphics or formatting appear.

Is there some configuration I have to set to get this working?

I've noticed that all the graphics etc. are hard-wired to 'localhost', which explains why I'm losing the images when accessing from a remote machine. e.g.

http://localhost/mywordpresssite/wp-content/themes/twentyeleven/images/headers/lanterns.jpg

Help!!

share|improve this question
    
    
OK but this talks about moving a wordpress site...I just created a new one but none of the links/images are loading because they have static URLs pinned to localhost... –  AshesToAshes Mar 30 '12 at 19:41
    
codex.wordpress.org/… your domain URL is thus in desperate need of changing from localhost to a globally accessible IP/host. You have moved virtually. –  soulseekah Mar 30 '12 at 19:42
add comment

1 Answer

up vote 0 down vote accepted

Check that your WordPress Address and Site Address are correct under Settings > General. ie., if you want it to be viewable on another computer, this shouldn't say "localhost" anywhere...

share|improve this answer
    
So easy when you know how...DUH rookie mistake :) THANK YOU :) –  AshesToAshes Mar 30 '12 at 19:48
1  
Just keep in mind that URLs in content, etc. will still be hardcoded to localhost if you ever inserted them when under localhost. This solution is great for when you have had no chance to create any content yet, and is incomplete when dealing with existing content, menus, some plugin and theme settings, etc. –  soulseekah Mar 30 '12 at 19:53
    
+1, Yes, there are times when some MySQL mojo is necessary when the settings weren't quite right to begin with. –  k3davis Mar 30 '12 at 20:11
add comment

Your Answer

 
discard

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.