access to WordPress admin and content separated to the domain
-
Hi all
I have a critical question, is it any way to separate the file from the domain configuration. I am a web developer and design the WordPress in my computer and use localhost address or local IP to access the wp-admin but when I want to transfer to the production environment, sometimes need to wait for the domain propagation
you know this configurationdefine( ‘WP_HOME’, ‘https://example.com’ );
Dynamically set WP_HOME based on $_SERVER[‘HTTP_HOST’]define( ‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’] . ‘/path/to/wordpress’ );
this is my question. how to configure htaccess or WordPress to work independently from domain and file and content related to the / “webserver root folder or virtualhost root folder”
I don’t know the appropriate world maybe relative URL “site work with or without domain only “
- The topic ‘access to WordPress admin and content separated to the domain’ is closed to new replies.