WordPress.org

Ready to get started?Download WordPress

Forums

Can I view a WP site built in a subdirectory of my static HTML site? (5 posts)

  1. craftycurate
    Member
    Posted 1 year ago #

    Hi Folks ...

    I'm quite new to setting up WordPress, and haven't done this before, so any advice would be appreciated. I've found some similar posts on the forum, but need to confirm I'm doing the right thing ...

    The client already has a static HTML site (a single splash page) which is a placeholder while main WP site is being developed. So I'll install WP in a subdirectory of the main site, and develop and test the new site there.

    However, I will obviously need to view the new site as I develop it, and also have access to the admin panel etc.

    So let's say my domain is 'www.existingdomain.com' and the subdirectory is 'WPFolder' ... Can I view the WordPress site simply by visiting

    http://www.existingdomain.com/WPFolder

    Or is there something else I need to do to view the WP site while it is located in the subfolder?

    Any help appreciated!

    Cheers
    Richard

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Can I view the WordPress site simply by visiting
    http://www.existingdomain.com/WPFolder

    In a word - yes. I do this all of the time for my clients.

  3. craftycurate
    Member
    Posted 1 year ago #

    Great thanks.

    And when the time comes to go live, do you normally relocate the WP file structure into the root, or use some kind of redirect in the site root and keep the WP installation in the subdirectory?

    Any advantages\disadvantages for either method you've encountered?

    Thanks again
    Richard

  4. I also do this all the time, and I always leave WP in the folder and redirect when it's time to go live. I find that it's easier to deal with at the time and far easier to maintain afterwards -- especially if something goes wrong and I find myself having to clean up a neatly-contained folder instead of stuff that's spread all over the place with no real system.

    The directions for switching the site URL while leaving the files in place are here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install and it's really quite easy as long as you make sure to follow all the steps in order.

  5. craftycurate
    Member
    Posted 1 year ago #

    That's very helpful thanks!

    I have done a manual WP installation before, and set up the mySQL database through cPanel, and so forth so I think I should be OK with this now.

    Cheers
    Richard

Topic Closed

This topic has been closed to new replies.

About this Topic