• Thanks in advance, everyone.

    I already have a WP site in the root of the webserver. I have created a static site and would like to upload this to the webserver as well. I reached out for some help, and the feedback was that I would need to place WP in its own directory, and then have a button to click to direct to the WP install from the static site.

    My question is, can modifying the .htaccess file allow me to keep my WP install in the root of the webserver, as well as my static HTML files in the root as well?

    I’ve done some research on .htaccess, but all that appears is re-directing to another domain name. I only have one domain name and my folders and files for WP are in the root.

    Again, any help would be deeply appreciated. If I have to migrate WP to its own folder, then so be it. I just wanted to see if there was a simpler way of accomplishing this.

    Many thanks!

    [moved to How to and Troubleshooting forum]

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s best to have WordPress in a separate folder. Your root folder should only have one index.php or index.html. Having 2 will simply confuse it.

    Thread Starter blackop

    (@blackop)

    Thanks for the insight Christine! = ) And I do apologize for posting this in the wrong area.

    Do you–or anyone for that matter–see any down-sides to having WP in a seperate folder? IE: https://www.exampledomain.com/blog The reason I ask is due to plugins. To be specific, it is the social network connector plugins. IE: Facebook, twitter, google + etc…

    This is my first time dealing with this, so I’m trying to minimize the amount of land-mines I step in. I have the WP migration documentation. I’ve performed the migration in a lab environment to test it before going live. All of this per this site’s amazing support articles and the amazing people here in the forums. However, having it in a seperate folder is new.

    Agian, many thanks!

    No worries about posting in the wrong area. We can easily move items and we only do this to keep things tidy and make it easier for others to find.

    I don’t think that there’s a downside in having your wordPress site in a blog folder. I ran my site like that for many years. Mind you the plugins will only work on your blog. You won’t be able to use them on your static pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP with static site at the root .htaccess?’ is closed to new replies.