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.