admin管理员组文章数量:1302406
1 down vote favorite I am developing a Wordpress theme that requires testing with multiple devices over my local network. I use the localhost server XAMPP which runs apache on port 80.
When I access my PC's IP (192.168.0.16) port 80 using an iPad, it returns the apache directory of which I have two sites:
site1 wordpress The first site is a basic php site, this loads perfectly. The second site is Wordpress, and won't let me access it (see pic).
I have tried changing the setting inside Wordpress:
changing localhost to 192.168.0.16 inside the site and Wordpress address. Can anyone advise me on what I'm doing wrong?
1 down vote favorite I am developing a Wordpress theme that requires testing with multiple devices over my local network. I use the localhost server XAMPP which runs apache on port 80.
When I access my PC's IP (192.168.0.16) port 80 using an iPad, it returns the apache directory of which I have two sites:
site1 wordpress The first site is a basic php site, this loads perfectly. The second site is Wordpress, and won't let me access it (see pic).
I have tried changing the setting inside Wordpress:
changing localhost to 192.168.0.16 inside the site and Wordpress address. Can anyone advise me on what I'm doing wrong?
Share Improve this question asked Sep 21, 2017 at 11:24 carterukcarteruk 31 silver badge2 bronze badges 2 |
1 Answer
Reset to default 0Go to Admin Panel > Settings > General and replace localhost with your ip-address for WordPress Address (URL) and Site Address (URL).
Or go to wp-config.php and add
define('WP_HOME','http://192.168.0.16');
define('WP_SITEURL','http://192.168.0.16');
And when you access to from other device you should go 192.168.0.16/directoryOfWordpress
本文标签: theme developmentTesting localhost WordPress site over LAN with iPadiphone
版权声明:本文标题:theme development - Testing localhost WordPress site over LAN with iPad, iPhone 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741713127a2393956.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
wordpress
? – mmm Commented Sep 21, 2017 at 12:17192.168.0.16/wordpress
though, not localhost? – Rarst Commented Sep 21, 2017 at 12:21