Page 1 of 1
CSS disabled when connecting to localhost
Posted: 27. Oct 2009, 22:05
by kaffin
Hi there!
I run MAMP on my Mac and I want to check the websites I create in Internet Explorer. I can connect to the host by enter the local IP in IE, but when I am viewing a site, CSS seems to be disabled. What is that and how can I fix it?
Re: CSS disabled when connecting to localhost
Posted: 27. Oct 2009, 22:27
by Sasquatch
You have to check if you can access the CSS file from your Guest by entering the URL to the CSS file in your browser. If you get a page not found or 403 forbidden, there is something wrong with the configuration. If you do see the CSS, check the source code of the page when opened in IE, maybe it's pointing to the wrong location for the CSS file. If it's IE6, it's possible that your whole CSS is ignored, but I doubt that would be the problem (even though IE6 doesn't fully support CSS, it should still load some items).
Re: CSS disabled when connecting to localhost
Posted: 27. Oct 2009, 23:56
by Perryg
Check for literal references in the HTML. Like myhost.com/css
If you enter from the ip in the guest browser it will not translate.
You can get around that by adding the ip and the host name to the hosts file of the viewing machine
Re: CSS disabled when connecting to localhost
Posted: 28. Oct 2009, 17:35
by kaffin
Aha, Wordpress links the CSS to "localhost". Hmm, I can't come up with a solution to this right now, what do you thik?
Thanks for the answers!
Edit: Of course, I just change localhost to the actual local IP in the Wordpress Dashboard!

Re: CSS disabled when connecting to localhost
Posted: 25. Nov 2009, 16:05
by Meyway
Hi,
I put a solution here:
http://wordpress.org/support/topic/274655
Hope it works for you.
Re: CSS disabled when connecting to localhost
Posted: 25. Nov 2009, 16:27
by Perryg
Or you can just change the setting in the admin settings console to the IP address instead of localhost. That way works as well and if you decide to port forward to it from the outside world it will still work.