: Can't load Wordpress static files on home network I've just installed Wordpress 3.5 on my laptop (LAMP on Ubuntu 12.10) and when I'm trying to access the site from my phone but it doesn't
I've just installed Wordpress 3.5 on my laptop (LAMP on Ubuntu 12.10) and when I'm trying to access the site from my phone but it doesn't load static files (css and images). I tried with Opera Mobile Emulator on my laptop and it works perfectly. I also have another Drupal site on my localhost which I can load from my phone without any issues. Both directories have chmod 777 permissions.
What can cause that?
Just tried to open the site from my sister's laptop but it except static file I can't access any post or page.
More posts by @Miguel251
3 Comments
Sorted by latest first Latest Oldest Best
Make sure that your CSS files are called in respect to what they are being viewed from - what I mean by that is that your CSS/images are correctly linked to via the html.
For example, for my website I use
<link rel="stylesheet" type="text/css" href="style/style.css" title="style" /> which will call the CSS relative to the root directory of my website, website. So my CSS us located in the folder website/style/style.css.
You may have something like 192.168.49.128 or localhost for your reference which would only make this work if you are viewing the website on your local network. If you'd like a more definitive answer, please supply us with a link to your website so we can actually view the source.
It was from the Wodpress Settings, it uses localhost for the site address which is not accessible over the home network so I changed with my laptop's IP (in the home network)
from Settings -> General
Change WordPress Address (URL) and Site Address (URL) from : localhost/wordpress to my.laptop.ip/wordpress
and everything works just fine
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.