admin管理员组文章数量:1387293
The problem: I'm running wordpress locally on a mac using mamp. I used to access my wordpress site with localhost:8888/mysite. I wanted to let other people see it using my IP address so I went under SETTINGS-GENERAL in Wordpress and changed the "Address URL" and "SITE URL" from 'localhost' to my IP address. I tried to reach the site with myIP:8888/mysite and it's broken. I tried to reach it through localhost:8888/mysite and it automatically redirects the browser to myip:8888/mysite. I cannot access my site anymore. What can I do?
Thank you all.
EDIT: I tried to change the siteurl and home option_value in the database putting localhost instead of my ip but it still doesn't work: by reaching localhost:8888/mysite it automatically redirects me to myip:8888/mysite.
The problem: I'm running wordpress locally on a mac using mamp. I used to access my wordpress site with localhost:8888/mysite. I wanted to let other people see it using my IP address so I went under SETTINGS-GENERAL in Wordpress and changed the "Address URL" and "SITE URL" from 'localhost' to my IP address. I tried to reach the site with myIP:8888/mysite and it's broken. I tried to reach it through localhost:8888/mysite and it automatically redirects the browser to myip:8888/mysite. I cannot access my site anymore. What can I do?
Thank you all.
EDIT: I tried to change the siteurl and home option_value in the database putting localhost instead of my ip but it still doesn't work: by reaching localhost:8888/mysite it automatically redirects me to myip:8888/mysite.
Share Improve this question edited May 10, 2020 at 18:00 Masiar asked May 10, 2020 at 17:47 MasiarMasiar 1134 bronze badges 3 |1 Answer
Reset to default 0So. In the end it was enough to change the address in the database. In the table wp_options there are the two entries pointing to the url that were set. By modifying those it should work. Unfortunately Chrome does some mumbo jumbo with redirects etc. and it kept pointing it to the old url. Testing it on another browser and/or clearing the cache did the trick.
Thanks to @Mayeenul Islam that pointed it out! He also suggested deleting .htaccess but I didn't trust myself enough to do it :P so if anybody has some similar issue they can try that too (remember to back it up!!).
本文标签:
版权声明:本文标题:home url - I changed the site address and wordpress address from localhost to my ip and it doesn't work anymore 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744485724a2608436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
.htaccess
, it will automatically be created when the permalinks is refreshed from Settings > Permalinks. – Mayeenul Islam Commented May 10, 2020 at 18:24