Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1315044
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?
Closed 4 years ago.
Improve this questionIm pretty new to networking and am trying to build my first website. I've set up my lamp server and created the site on localhost. Now I've got my domain pointing to my IP and port forwarding is set up on my router for it. Problem is, I can only access the site from a mobile device but even then it doesn't render fully. It only gives me text. If I try to click on any links, it tries to open localhost instead. On anything but a mobile browser, the page doesn't load at all.
I tried editing siteurl and home in the wp_options table to point to http://myip but when I try to save it, I get logged out. When I log back in, both settings are back to http://localhost.
Any clue on the issue? I think that solving the siteurl/home issue would also solve the first problem. So how do I get it to save these settings?
UPDATE: I added the following code to the wp-config.php file. define('WP_HOME','mysite'); define('WP_SITEURL','mysite');
Now its all working for the most part but my home link still tries to take me to localhost. Also still having the same issue with the site loading on phones only.
本文标签: localhostWordPress Doesn39t Save Changes
版权声明:本文标题:localhost - WordPress Doesn't Save Changes 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741972127a2407902.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论