• 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’, ‘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 “

    • This topic was modified 3 years, 1 month ago by Yui.
    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • My Name

    (@mhosseini80)

    hi,
    your question is vague, be clear.

    Thread Starter aminahoora

    (@aminahoora)

    The question is crystal clear. setup a WordPress website independent of domain or IP address. after development need to change the domain setting and site URL,
    That’s all
    in other CMS named Wildcard or Relative address

    • This reply was modified 3 years, 1 month ago by aminahoora.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    in other CMS named Wildcard or Relative address

    WordPress does not support that. You need to have a defined and working Site URL and WordPress Address. It could be localhost or anything but it needs to work when you use your browser to navigate to that URL.

    If you move the WordPress installation then you must update all of the references in the database with the new URL.

    https://www.ads-software.com/support/article/moving-wordpress/

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