Support » Fixing WordPress » Moving WordPress outside public_html

  • I’ve been running wordpress smoothly for months now with regular installation.

    Now for security reasons I wanted to move my wordpress directory OUTSIDE the public_html folder.

    I have read the “moving your wp-config outside” and yes its pretty ok IF you only have 1 wordpress install in your website.

    In my case I got hosting and currently hosting 5 wordpress website which i made myself.

    my current directory is


    what i wanted is

    those folder should only have index.php


    and the wordpress files should be outside public_html and in


    OR atleast the wp-config file


    please help!

    should it be done via HTACCESS? or any? i have no clue

Viewing 3 replies - 1 through 3 (of 3 total)
  • ok i manage to do it with the wp-config.php alone

    I just move it outside the public_html and in


    and created a new wp-config.php in


    with the content of

    include( ‘../../wordpress/sample1/wp-config.php’);

    is it secure enought?

    oops its not right..
    im having problem accessing wp-admin..

    is there anyone care to share any knowledge about this?

    fixed it wordpress cant accept this

    include( ‘../../wordpress/sample1/wp-config.php’);

    it needs to be

    include( ‘/home/username/wordpress/sample1/wp-config.php’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving WordPress outside public_html’ is closed to new replies.