Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Admin Settings WordPress Admin Settings The wp-config.php Settings

Which line of code correctly sets the site url to "example.com" in the wp-config.php file?

Which line of code correctly sets the site url to "example.com" in the wp-config.php file?

From The Wordpress Codex:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Colin Marshall
Colin Marshall
32,861 Points

Brigitt Arndt, the answers to all of the questions you are posting on the forum can be found in the video(s) leading up to the quiz challenges. Please go back to the videos and watch them over again before posting the question to the forum. If you still can't figure it out, post to the forum what answers you have tried that are incorrect. We don't want to just give you the answers, we want you to learn the material and retain the knowledge!

1 Answer

thanks, it's was just define( 'WP_SITEURL', 'http://example.com' )