Forums

wp-config.php outside of wordpress question (3 posts)

  1. CrossX
    Member
    Posted 1 year ago #

    Hello!

    I'm moving wp-config.php outside of wordpress folder, ONE LEVEL UP. For one site is ok, what if a want to move more wp-config.php files.

    here how is the structure:

    root/ wp-config.php for wp1 and is OK.
    ...../wp1
    ...../wp2
    ...../wp3

    what if I want to move also wp-config.php for wp1 and wp2... any chance to rename the wp-config.php :S

  2. s_ha_dum (was apljdi)
    Member
    Posted 1 year ago #

    ... not without hacking core code, as far as I know.

    You might be able to hack wp-load.php and change the paths but I am not sure if the path to wp-config.php is hard coded anywhere else, and you have no guarantees about what various plugins and themes might do. You might be looking at a lot of work and a lot of headaches.

  3. CrossX
    Member
    Posted 1 year ago #

    I understand, this is what i thought :|

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags