Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

For additional security, the suggestion is made to move the wp-config.php up one level. Can this be done after the site has already been launched? Any potential issues in doing this? Are there an restrictions/suggestions on what the new folder should be called?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

You can safely move it as far as I know.... but what do you mean folder?

Up one level would already be a folder....

if your site is in html, or public_html or whatever, you place the wp-config file in whatever folder holds your html or public_html folder

like if your path is /home/content/u/s/e/user/html/

And your WP is in html, the wp-config would go in user, the next folder up which is not web accessible. WP will automatically look for it there

If you are on shared hosting, you probably can't do that anyway

And if you have WP in a subdirectory, there would be no point in moving wp-config, as moving it up a level would still put it in a web accessible directory

share|improve this answer

Can this be done after the site has already been launched?

Yes.

Any potential issues in doing this?

No (that I can think of).

Are there an restrictions/suggestions on what the new folder should be called?

You should not create any new folders. Simply move file up one level. For example if your current path is /home/username/public_html/wp-config.php you should move it to /home/username/wp-config.php

share|improve this answer

You can safely move wp-config.php up one directory from the base WordPress install. You don't need to "name" any directories anything differently, as the relevant directory already exists. Also, WordPress core is already coded so that it looks in its root directory, and then one directory higher, for wp-config.php.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.