Re: ubuntu server 16.04.3 IP Address Resolves Correctly but Webpage Does Not
Cheating is "creative" and +1
Issue was posts in table wp_posts has stored content pointing to http://192.168.4.176
WP_SITEURL and WP_HOME variables in db.
can be "cheated" also using
Code:
define('WP_HOME','http://domain.tld');
define('WP_SITEURL','http://domain.tld');
can be utilized in wp-config.php. negating the "reason" to alter another table.
wp_posts table has all the posted content still pointing to 192.168.4.176
something like export db > database.sql
Code:
cat database.sql | sed 's#http://192.168.4.176#http://10.11.79.3#g' > database2.sql
would "sanitize" the inplace data. You'd have to re-import database2.sql into the wordpress db and you should be golden.
https://codex.wordpress.org/Changing_The_Site_URL
and
https://codex.wordpress.org/Moving_WordPress
Windows assumes the user is an idiot.
Linux demands proof.
Bookmarks