Server Configuration
Bedrock can run on any webserver that supports Composer and PHP >= 7.1. The document root for your site must be pointed to Bedrock's web
folder.
Nginx configuration for Bedrock
If you aren't using a Nginx-based setup that already supports Bedrock, such as Valet or Trellis, you'll need to configure Nginx with the following rules:
Nginx multisite config
Multisite installations on Nginx need additional rewrites depending on the type of multisite install.
Subdomain multisite rewrites
Subfolder multisite rewrites
Apache configuration for Bedrock
Make sure the DocumentRoot
is set to the web
folder:
You can also add the suggested .htaccess
file from WordPress at web/.htaccess
:
Managed WordPress hosts and Bedrock
If you're using a supported WordPress host such as Kinsta, then contact support and ask them to set your document root to the web
folder.
Sometimes you can't change the document root on hosted web server. In this case, you can create an .htaccess
file at the root of your project with the following content: