• Resolved Mike Shupp

    (@mike-shupp)


    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,

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is the best piece of documentation to read:
    https://codex.www.ads-software.com/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

    Thread Starter Mike Shupp

    (@mike-shupp)

    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.

    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 https://www.example.com??? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installed In Root Directory, But Want To Develop In Sub-Directory’ is closed to new replies.