WP-Admin not reachable with WP_HOME and WP_SITEURL change.

[ad_1]

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]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer