• Resolved Cloudy tech

    (@cloudytech147)


    never touched WordPress before but been tasked to migrate a site from a hosted solution into AWS. Migration has been completed but now I am wondering when/if I should change the site URL in the wp-config.php.

    The following two lines are in the wp-config.php file:

    
    define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
    define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
    

    My question is if I change the DNS address to point to the new address in AWS – will the site URL and home URL in WordPress change dynamically? or do I have to manually input the URL in the wp-config file?

    Thanks

    —————————-
    code from AWS Projects.

Viewing 1 replies (of 1 total)
  • Plugin Author Yani

    (@yaniiliev)

    Don’t change wp-config.php. Change DNS and point it to the new server.
    It should work.
    If you need to replace anything later(likely not), you can export only the database and fill in find/replace pairs.

Viewing 1 replies (of 1 total)
  • The topic ‘DNS changes after migration – how to handle it?’ is closed to new replies.