Hi,
I'm going to switch from Apache to Nginx and i'm using Wordpress with Xenforo for /forum. I have found rewrite settings for both. I guess they are as follows:
Xenforo:
location /forum/ {
try_files $uri $uri/ /forum/index.php?$uri&$args;
}
Wordpress:
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
But i couldn't know to which file i add them? Is it Nginx-vhosts file?
Thanks
I'm going to switch from Apache to Nginx and i'm using Wordpress with Xenforo for /forum. I have found rewrite settings for both. I guess they are as follows:
Xenforo:
location /forum/ {
try_files $uri $uri/ /forum/index.php?$uri&$args;
}
Wordpress:
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
But i couldn't know to which file i add them? Is it Nginx-vhosts file?
Thanks