Multisite Subdomains Nginx Ownfolder
-
Perhaps someone has already done this:
I am attempting to install wordpress multisite using the subdomain configuration, custom content directory and also giving wordpress it’s own folder (running from root). Oh and it’s on Nginx.
Main site installs fine. Just needed a small hack to fix the ‘Sites’ menu url. Subdomin wildcard all works – I create a new (sub) site within admin and I can browse to it.
The issue: New sites, for example supersite1.mydomain.com doesn’t have the correct urls for any assets (just HTML pages with no css or js) so I’m wondering is this something that can done through wordpress/database or through an Nginx rewrite rule?
Essentially I need any request for a subdomain with these 2 folder
*.mydomain.com/wp-admin
*.mydomain.com/wp-content
to become this:*.mydomain.com/myfolder/wp-admin
*.mydomain.com/myfolder/wp-contentIf anyone has actually done this – I would love to see how it was done…
Thanks 🙂
The topic ‘Multisite Subdomains Nginx Ownfolder’ is closed to new replies.