I am creating an automatic WordPress deployment using Composer and saving the wp-content folder outside the main WP installation (because I have some custom plugins and themes) that are pulled from github.
After pulling out of github and a working composer, my folder structure looks like this:
-composer.php
-env.php
-public/
|-index.php
|-wp-config.php
|-wp-content/
|-themes/
|-plugins/
|-sunrise.php
|-wp/
|wordpress stuff
My htaccess rules work well when using MAMP, but I use VVV as a development environment and VVV uses nginx, so my rewrite rules do not work.
VVV uses 2 conf files: one file shared by all sites in the virtual machine (general rules) and one file for each site (basically just lists the root directory).
Here is my conf config file:
server {
listen 80;
listen 443 ssl;
server_name auto.dev ~^auto\.\d+\.\d+\.\d+\.\d+\.xip\.io$;
root /srv/www/auto/htdocs/wordpress;
rewrite ^/(wp-.*.php)$ /wp/$1 last;
rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last;
include /etc/nginx/nginx-wp-common.conf;
}
so i added
rewrite ^/(wp-.*.php)$ /wp/$1 last;
rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last;
( , CSS JS), :
1) CSS. Chrome index.php:
Uncaught SyntaxError: Unexpected token <
note - , , Twenty Fifteen , .
2) , - , http://auto.dev/wp-admin/network/, : http://http//auto.dev/wp-admin/network/ , ,
3) , . Stuff http://auto.dev/wiki/wp-admin/
4) , , , .