Hi everyone,
I installed wordpress into mysite-com/blog/ , then installed ROOTS. My root domain has Invision Power Board installed.
I’m trying to get roots rewrites working to rename the asset URLs, etc.
Q2) Am I supposed to install both the ROOTS rewrites plugin, and add the rewrite try files stuff to my vhost file, or just the vhost info as stated here?
Here’s my current vhost config:
server {
listen 80;
server_name mysite.com www.mysite.com.com;
root /www/sites/mysite.com/html;
access_log /var/log/nginx/mysite.com.access.log;
error_log /var/log/nginx/mysite.com.error.log warn;
include "standard.conf";
# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?q=$request_uri;
}
#Blog rewrites
location ~ ^/blog/assets/(img|js|css|fonts)/(.*)$ {
try_files $uri $uri/ /blog/wp-content/themes/roots/assets/$1/$2;
}
location ~ ^/blog/plugins/(.*)$ {
try_files $uri $uri/ /blog/wp-content/plugins/$1;
}
location /blog {
try_files $uri $uri/ /blog/index.php?$args;
# include "w3.conf";
}
location ~* ^/(uploads|hooks|cache)/.*\.(php|cgi|pl|py|php3|php4|php5|php6|phtml|shtml)$ {
deny all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php5-mysite.com.sock;
}
}
Thank you