Wordpress in a subdirectory (using Bedrock-Ansible)

Hello!

I am currently using Bedrock-Ansible to deploy a Bedrock. The whole setup works correcly, and am really satisfied with it.

I have one little problem: I would like the wordpress to be installed to mywebsite.com/wordpress, but I am unsure of what I need to change in the Nginx Configuration so the “base url” is mywebsite.com/wordpress and not mywebsite.com.

Can someone point me in the right direction?

At a minimum you’d have to set your wp_home ENV var to include that subdirectory. And then modify the Nginx conf to point to that subdirectory as well.

The default conf has it at / (root), so you’d have to modify that. I’m not too sure off the top of my head what else is required but any resource you find from Googling should be fine.

This isn’t really too specific to Bedrock or the Ansible setup.