CSS, JS and images are not loading while sharing WAMP over local network

Posted by Hardik Thaker on Server Fault See other posts from Server Fault or by Hardik Thaker
Published on 2012-10-27T15:37:33Z Indexed on 2012/10/27 17:02 UTC
Read the original article Hit count: 308

I have share my wamp over my personal LAN . (Server IP : 192.168.0.100)

When I am trying to access wamp server it's working perfectly. But when I open website hosted on server using client machine (192.168.0.103) , it doesn't load CSS - Images and JS files. So I saw console and found that my browser is trying to load :

localhost//mysite/css/style.css

And failing to load resource. now when I try to load the same resource directly from browser using

192.168.0.100/mysite/css/style.css

It's showing me css file ! Now I am confused how to solve this problem so that my browser load that css perfectly !

Please help me ! thanks in advance !

© Server Fault or respective owner

Related posts about apache2

Related posts about network-share