Ok so I don't know if this question is suitable for StackOverflow or not so I apologize if it's not. Here is the problem, I develop my wordpress themes on my localhost 'localhost/~jamiemcardle/wordpress' and thats fine. I can go to my iPhone and type in '192.168.0.8/~jamiemcardle/website' or whatever the address number is to access a website stored in that folder. But if I type '192.168.0.8/~jamiemcardle/Wordpress' it loads the wordpress site without any styling. Why? How can I fix this? Also Safari and Chrome do this on iPhone but all browsers are ok on Macbook.
Thanks
Easiest fix would be to change the site URL in the WP options to the IP address (so replace localhost with your I.P).
The lack of styling is due to the fact that the site is looking for "localhost/wp-content/themes/theme-name/style.css" but is obviously unable to find it due to the fact that that's NOT the address you're visiting.
Always use the IP instead of localhost to avoid problems of this nature.
Related
I am currently migrating my website that was hosted on GoDaddy to an Amazon Linux instance. Everything has worked so far using elastic IP that I allocated, but I haven't been able to access other pages using the GoDaddy domain I transferred from my original website.
I have tried to change the site address/URL structure in the Wordpress settings, but I almost broke my website (TWICE!). Should I be changing one of the .htaccess files instead of the native Wordpress setting?
My elastic/public EC2 instance IP is: 52.26.232.168
The domain I would like to point to the IP is: artrantsbyaj.com.
Any help is greatly appreciated.
NOTE: I do not yet have a high enough reputation to post images yet, I apologize.
Try to refresh your permalinks:
Go to the permalink settings and save them (do not change anything, only click on save to refresh your permalink structure).
Test it and let me know if you have any problem.
Regards.
I hope someone can help, I've been going round and round in circles. I've tried calling my host 1and1 they basically told me it's nothing to do with them.
All my Wordpress pages render fine to the eye of the user.
However if I use http://web-sniffer.net and put any page other than the homepage it returns a 404 status.
The .htaccess file is the standard Wordpress one. I don't have any caching plugins installed.
Could anyone tell me how I fix this? Or what on earth is going on? I've been at this for hours reading tonnes of posts to no avail.
I am using a dedicated 1and1 server, within the settings in Plesk the IPv6 address was set to none. As soon as I added a IPv6 address it all worked!
Note I had another issue that Facebook wasn't able to scrape my URLs, this also fixed that. Wordpress - Shared link 404 on Facebook
Hiall,
I’m trying to simply test my local MAMP PRO wordpress site on my iPhone through my local LAN network.
I test my on my Mac via the URL which works fine
http://mysite:8888/
For my iPhone
If I go to MAMP PRO select my website/host from the left column and check the via Xip.ic (LAN only) option/checkbox
it provides a URL which is
http://mysite.10.0.1.6.xip.io:8888
I then send myself an email with this link which I click from the iPhone
When I load http://mysite.10.0.1.6.xip.io:8888 in my iPhone, the URL loads and I can see my website but there is no images, or CSS styling, the sites links are not correct and I only see the sites text.
I understand I need to change the site to load like its loading from mac to my iPhone urls and that I can change the
WordPress Address (URL)
Site Address (URL)
without having to do it in the wp-admin settings screen by adding by doing
define('WP_HOME','http://mysite.10.0.1.6:8888');
define('WP_SITEURL','http://mysite.10.0.1.6:8888');
but this does not make a difference either
I’ve also tried
define('WP_HOME', 'http://mysite.10.0.1.6.xip.io:8888');
define('WP_SITEURL', 'http://mysite.10.0.1.6.xip.io:8888');
I’ve found various examples like
https://wordpress.stackexchange.com/questions/98386/testing-local-server-with-mamp-wordpress-on-mobile-device
http://www.designshifts.com/view-local-wordpress-website-on-your-iphone-or-ipad-with-mamp/
which I have spent hours trying to replicate but I just can’t figure it out!
I’m not sure if it’s because I’m typing my urls / ports different/incorrectly and typing my URL’s incorrectly to include ports etc, or because I have the latest version of MAMP PRO and Yosemite and these examples are a few years old etc, or maybe I need to be clearing the the word press / MAMP cache, restarting on every atempt etc?.
Any help would be greatly appreciated!
If you already have replaced the home and siteurl in the General Settings. Note: Wp-config alternative hack as you mentioned didn't work for me.
In Mamp Pro, select your host e.g. (example.dev).
Check "via Xip.io (LAN only)
Under Alias Name, Add your system's static IP (e.g. 192.168.15.4). Default settings will work
Save and Restart servers.
Your Images and CSS should appear. BUT links are still not working. I hope you'd help me improving the answer.
In the Wordpress settings, change the below:
define('WP_HOME', 'http://mysite.10.0.1.6.xip.io:8888');
define('WP_SITEURL', 'http://mysite.10.0.1.6.xip.io:8888');
To your device local network I.P. address, for example:
define('WP_HOME', 'http://192.168.0.71');
define('WP_SITEURL', 'http://192.168.0.71');
This will work!
To be honest, the simplest way I have found is to just go into your database and look for siteurl and home which are normally record 1 & 2 in the database, and update it to your network IP address.
It can then be visited in the browser from that IP address for anyone on the network.
Wordpress just isn't built to make xip.io work because it defines the site name statically.
I have a wordpress site on the Ubuntu computer that I am using as a webserver. I have the wordpress system installed in /var/www/html. I have created pages which display nicely from any computer, tablet or handheld within my lan environment.
I am going crazy trying to access my website from the internet. Can anybody please help?
I have a noip address and a BTHub which allows me to set up dynamic dns to inform my noip account automatically when the ip changes and this works fine.
I have set up port forwarding for http and https to the computer hosting my wordpress site
I have tried assigning DMZ to my wordpress hosting computer
I have made sure I own the wordpress folders and files within them
my LAMP installed without a hitch and over the LAN access is no problem with one exception - I can only use the default permalinks or wordpress can not find my pages - no idea why? I had to cut wordpress into var/www/html as it initially went into www and could not be found
I have spent DAYS with this! It is a part of a bigger project where I want to run some projects across the internet. I dispair that if I cant get a simple wordpress site to work that my projects are doomed! lol.
When I try to access my site from another location across the internet, I get the first page, but without the media picture that should be on it. When I try to change pages I get the not found message. I also get the initial page without a style sheet in some instances. I have no clue about how to fix this. I took up Linux about three months ago, having been a windows and OSx man for years. I am in love, but have a steep learning curve!
It looks like a location issue or a WAN address issue or something I cant figure out!
I would appreciate any help that anyone out there can give me.
Eric
Thank you for your feedback. I have just this moment sorted it out. I read up the permalinks wiki thoroughly and I found out how to change the URLs from within the wp- files in the theme I was using. After a few refreshes it now works. I will post up a how-to for any others who may be experiencing the same frustration.
I have installed wordpress and a theme, customized that on my localhost.
Everything is ok on that pc where xampp is installed.
But if I go to that page (on the same network) from another pc - I see no css, no style, just messy text.
Even when I move it to the live server I get the same mess.
Anyone could tell me why?
Go to your Wordpress settings. And in URL enter URL with IP address of pc. instead of localhost/sitename change it to192.168.../sitename
Then access it from other pc using same address like 192.168.../sitename
This will solve the issue hopefully.