I'm attempting to set up WordPress skeleton (/) in a multisite configuration. WordPress skeleton already places WordPress in a subdirectory (wp by default). I've taken the following steps:
- git clone WordPress-Skeleton
- Update Submodules and checkout 3.6.1 tag
- Setup local-config.php to point to my local DB Install WordPress, set site settings to example (site), example/wp (WordPress URL)
- Configured multisite (subdirectory) and configured NGINX to serve the
Multisite properly (NGINX config can be found here:
)
Once all of this is configured, I can see that the main site (example and example/wp/wp-admin) both work.
I then add a new site to the network. Upon navigating to the site url (example/test-network-site) the front-end is broken (style.css, for example, cannot be found at the URL .css?ver=2013-07-18). When navigating to the wp-admin, I'm in a redirect loop.
My end goal is to be able to use WordPress Skeleton as a base for the sites I deploy and have the multisite configuration work as it does normally (where example is the network main site, example/test-network-site is a site within the network, and example/test-network-site/wp-admin works as it should). At this point my main question may be is this even possible?
I have a good feeling that the NGINX configuration is the main issue as (for fun) I created the exact same environment locally and fired up MAMP. Under MAMP, this configuration works fine.
Unsure of how to move forward. Any insight would be greatly appreciated!
I'm attempting to set up WordPress skeleton (https://github/markjaquith/WordPress-Skeleton/) in a multisite configuration. WordPress skeleton already places WordPress in a subdirectory (wp by default). I've taken the following steps:
- git clone WordPress-Skeleton
- Update Submodules and checkout 3.6.1 tag
- Setup local-config.php to point to my local DB Install WordPress, set site settings to example (site), example/wp (WordPress URL)
- Configured multisite (subdirectory) and configured NGINX to serve the
Multisite properly (NGINX config can be found here:
https://gist.github/tmort/6582961)
Once all of this is configured, I can see that the main site (example and example/wp/wp-admin) both work.
I then add a new site to the network. Upon navigating to the site url (example/test-network-site) the front-end is broken (style.css, for example, cannot be found at the URL http://example/wp/test-network-site/wp-content/themes/twentythirteen/style.css?ver=2013-07-18). When navigating to the wp-admin, I'm in a redirect loop.
My end goal is to be able to use WordPress Skeleton as a base for the sites I deploy and have the multisite configuration work as it does normally (where example is the network main site, example/test-network-site is a site within the network, and example/test-network-site/wp-admin works as it should). At this point my main question may be is this even possible?
I have a good feeling that the NGINX configuration is the main issue as (for fun) I created the exact same environment locally and fired up MAMP. Under MAMP, this configuration works fine.
Unsure of how to move forward. Any insight would be greatly appreciated!
Share Improve this question asked Sep 29, 2013 at 13:34 TomTom 1,2966 silver badges18 bronze badges 2- Compare with Nginx: Multisite Subdirectory rules ? – sam Commented Oct 24, 2013 at 23:28
- You can install WordPress Multisite(Subdomains and Subdirectories) with nginx just by using easyengine (goo.gl/Wzidcu). – Abhishek Kaushik Commented Nov 8, 2013 at 12:28
1 Answer
Reset to default 2You might check in General Settings:
- Home URL should be
http://example
- Site URL should be
http://example/wp
When you open http://example
, what URL does it show for …/twentythirteen/style.css
?
Do you see the "broken" URL
http://example/wp/test-network-site/wp-content/themes/twentythirteen/style.css
in the source? If so, it suggests WordPress might be using a wrong path (not necessarily nginx).
I think that should be
http://example/test-network-site/wp/wp-content/themes/twentythirteen/style.css
You might check if that URL works at all.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744885800a4599110.html
评论列表(0条)