Since my .htaccess is located at example.com/.htaccess, I’ve created a symlink in /shared/web/.htaccess to /shared/web/wp/.htaccess so I can use a single .htaccess file because two files is not as good as one.
I have this line in my deploy.rb:
# Linked files
set :linked_files, %w{.env web/.htaccess web/wp/.htaccess}
When my deploy runs, I see the symlinks being built:
As a follow up to a potential troubleshooting question, if I create two, separate .htaccess files, one in /shared/web and one in /shared/web/wp, the deploys work and the symlinks work properly.
But then I still have two different files, so, you know, not as good…
You guessed correctly! Any suggestions on my next steps? I guess I’d have to write another, like, command after composer gets run? Is that at least going in the right direction?
We can’t be of much help here I’m afraid. We use Nginx anyway but I’d try and find a plugin that at least lets you override their default .htaccess location. They really shouldn’t be hardcoding some path without the option to change it.