I was recently working on a project that loaded WordPress from a sub-directory. The result of which is if I cloned the project into the public
directory, the WordPress files and directories (e.g. index.php
, wp-login.php
, wp-admin/
) were one level deeper (in public/wordpress
).
To run the site from this alternate location, I modified the mysite/conf/nginx/site.conf.hbs
file.
Changing
root "{{root}}";
to
root "{{root}}/wordpress";
After making this change I stopped and re-started the site in Local and it loaded from the new location.
Thank you @salcode,
I found this answer very helpful. It almost work but I had to put “{{root}}/myfolder” in 2 places down. But definitely, you realized me the simplest way it worked for me.