

When people type in the goal is to have it serve up the WordPress site with no hint of a /wordpress/ subdirectory in the URL.

What we are trying to accomplish is making WordPress serve all content as the “main site” while remaining in the /public_html/wordpress subdirectory. Especially when it comes to the REST API in WordPress - and with WordPress 5 relying heavily on the REST API for the Block Editor (aka Gutenberg editor) system this can wreak havoc if not done properly. If not done exactly right there will be problems. This particular installation requires some web server configuration wizardry. WordPress In A Subdirectory As The Main Site
INSTALLING THEME PHPSTORM 2019 INSTALL
This is particularly helpful if you want to use source control to manage your site deployments or even upgrade WordPress directly from the code servers versus the install system. There are a few reasons to do this - one of which is the ability to easily test a new version of WordPress and quickly “flip back” to an older version without a lot of fuss. The problem becomes more complex when you want WordPress to “live” in a subdirectory but PRETEND it is the main directory. You go to your WordPress admin and configure Settings | General | WordPress Address and Site Address and set them both to (or blog or whatever). This is the simple solution with no special expertise needed. When a user goes to my site, I’ll use “wpslp.test” as my example domain - they may go to to get to my WordPress posts. In a fairly routine subdirectory installation the /wordpress/ content would manage something simple like the blog or news feed. Our example install structure Subdirectory versus normal URLs Other users use this install to separate WordPress core code from the add-on and upload code (plugins, themes, uploads) and the site configuration.įor the sake of this explanation we’ll reference the document root as being in the public_html directory and WordPress inside of a /wordpress directory within. Sometimes this is done when WordPress is only managing one part of a website such as the newsfeed or blog. What is a subdirectory install?Ī subdirectory install is one in which WordPress is installed in a directory within the document root of a website. Apparently not all subdirectory installs are created equal - if it is not done properly things break. It turns out that an overwhelming percentage of people that are having issues have WordPress installed in a subdirectory. We have recently run into a number of customers using S tore Locator Plus® that are having issues with the new REST based geocoding system.
