WordPress.org

Forums

[resolved] Installed In Root Directory, But Want To Develop In Sub-Directory (4 posts)

  1. Mike Shupp
    Member
    Posted 5 years ago #

    Hello,

    I've installed WP successfully in web root directory, to eventually power whole website, and ultimately want the install to remain there. There's an existing live site there, reached through the existing index.html file (which I temporarily removed, so I could reach the WP install)

    I'd now like to create a development sub-directory, and develop my WP site there (leaving the WP install where it is), and leaving the existing site live, and when ready, redeploy the newly developed site to the web root. I've tried some of the help docs for moving site, and tried changing General Settings, but to no avail yet... and did have to edit the database though PHPMyAdmin to be able to get back to viewing the WP Dashboard.

    What is the best way to do this? Or do I need to do a new install of WP in that subdirectory? Thanks for any insight,

  2. jonradio
    Member
    Posted 5 years ago #

    This is the best piece of documentation to read:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    My personal favourite approach is to install all my WordPress "instances" in separate folders, and not install any in the Root. That way, I could use the above documentation to do a really fast switch from one to the other.

    Plus, I really don't like WordPress installed in the Root, because it is so easy to forget which Root files are WordPress and which are files that must be the Root for other reasons. Like 404.shtml

  3. Mike Shupp
    Member
    Posted 5 years ago #

    Thanks very much -- I removed initial WP install, re-installed in sub-directory, and can now follow directions in above link to change address used to reach site as desired, works great.

  4. jjiang77
    Member
    Posted 4 years ago #

    I did my initial set up in a subdirectory (example.com/wordpress) and had both the blog url and wordpress url pointed at the subdirectory. Now I'm ready to have the blog itself show up in my root directory (www.example.com) and I have modified the blog url in the general settings but nothing is happening. I also copied index.php into my root directory and modified it per the article but still nothing. What else do I need to do to get the blog to show up on http://www.example.com??? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.