Bird
0
0

You want to move your WordPress site to a new domain. Which wp-config.php settings must you update to ensure the site works correctly?

hard📝 Application Q8 of 15
Wordpress - WordPress Settings and Configuration
You want to move your WordPress site to a new domain. Which wp-config.php settings must you update to ensure the site works correctly?
AUpdate <code>WP_HOME</code> and <code>WP_SITEURL</code> to the new domain URLs
BOnly update the database name to the new domain
CChange <code>DB_PASSWORD</code> to the new domain name
DNo changes needed in <code>wp-config.php</code> for domain change
Step-by-Step Solution
Solution:
  1. Step 1: Identify domain-related constants

    WP_HOME and WP_SITEURL define the site address and must match the new domain.
  2. Step 2: Understand why other settings don't apply

    Database name and password relate to database access, not domain names.
  3. Final Answer:

    Update WP_HOME and WP_SITEURL to the new domain URLs -> Option A
  4. Quick Check:

    Domain change = Update WP_HOME and WP_SITEURL [OK]
Quick Trick: Change WP_HOME and WP_SITEURL for new domain [OK]
Common Mistakes:
MISTAKES
  • Changing database name for domain update
  • Modifying DB_PASSWORD to domain name
  • Assuming no config changes needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes