Support » Localhost Installs » access to WordPress admin and content separated to the domain

  • Resolved aminahoora

    (@aminahoora)


    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 configuration

    define( ‘WP_HOME’, ‘http://example.com’ );
    Dynamically set WP_HOME based on $_SERVER[‘HTTP_HOST’]

    define( ‘WP_HOME’, ‘http://’ . $_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 “

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘access to WordPress admin and content separated to the domain’ is closed to new replies.