I have a self-hosted WP website that I have connected to [www.mydomain.net]). When attempting to navigate from the main page at [www.mydomain.net]) to another page, my IP becames revealed and the domain is no longer used.
As a solution to this, I have applied the following lines in the wp-config.php file:
define( ‘WP_HOME’, ‘https://www.mydomain.net’ );
define( ‘WP_SITEURL’, ‘https://www.mydomain.net’ );
this successfully solves my issue and redirecting to other pages continues to show the domain.
But now I am unable to access the “[172.16.1.111/wp-admin]” or “www.mydomain.net/wp-admin” page. Does anybody know how I can still access “[172.16.1.111/wp-admin]” while still maintaining the proper redirection to my domain?
[ad_2]