admin管理员组文章数量:1325236
We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer ().
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!!
We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer (http://www.microsoft/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 asked Mar 30, 2012 at 19:29 AshesToAshesAshesToAshes 1751 silver badge7 bronze badges 3 |2 Answers
Reset to default 1Check 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...
This may not be the right solution, but I had the symptoms (styles and images not loading) in a different case: Take a look at the XML generated by Wordpress for web.config. At least in some cases, it is incorrect. I've worked it through in the multisite case (different from this case) and had to change Rule 4 action to point to url="{R:2}" and Rule 5 to point to url="{R:3}".
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
<rule name="WordPress Rule 5" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
<action type="Rewrite" url="{R:3}" />
</rule>
本文标签: imagesGraphics and Formatting Not Loading in WordPress on IIS
版权声明:本文标题:images - Graphics and Formatting Not Loading in WordPress on IIS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742165922a2425819.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
localhost
to a globally accessible IP/host. You have moved virtually. – soulseekah Commented Mar 30, 2012 at 19:42