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 Customizing the WordPress wp-config.php File

Samantha Cook
Samantha Cook
1,243 Points

Customising the wp-config.php File

Hi,

In the wp-config.php file I tried to take my site offline using dev. in front of my domain name as follows; define('WP_SITEURL', 'http://dev.daydreamingadventure.com'); define('WP_HOME', 'http://dev.daydreamingadventure.com');

but the site content is still visible on www.daydreamingadventure.com and I can't access the site via www.daydreamnigadventure/wp-admin

Help!

Sam

3 Answers

Unfortunately, I don't think WordPress will let you use subdomains (that is, the dev part of dev.daydreamingadventure.com) to access the admin area, or at least, not without a lot of hassle.

Samantha Cook
Samantha Cook
1,243 Points

thanks for the response Ryan, I was watching the wp_config video and thought that was what it was telling me to do, and thought that would be useful. Oh well, I'm very new to Wordpress so will save myself the lot of hassle option!

http://teamtreehouse.com/library/wordpress-admin-settings/wordpress-admin-settings/customizing-the-wordpress-wpconfigphp-file

Caroline Hagan
Caroline Hagan
12,612 Points

It is a lot more involved than simply changing the values in wp-config.

Please see Wordpress Reference : http://codex.wordpress.org/Moving_WordPress