Install a separate wordpress in subfolder

hi, I would like to create a site in a subfolder of a domain that I have already created through easyengine.

my actual domain are and i want create a separate site (no multisite ) in a subfolder called “news”, so the url are

I have already seen that requests have been made on the forum as in these discussions:

so i tried to make some update but actually i see a difference between files exposed in this discussion and the file in my easyengine installation, probably because the discussions are old.

in my /etc/nginx/sites-enabled/

i see this code :

server {


    access_log /var/log/nginx/ rt_cache; 
    error_log /var/log/nginx/;

    root /var/www/;

    index index.php index.html index.htm;

    include common/php.conf;      
    include common/wpcommon.conf;
    include common/locations.conf;
    include /var/www/*.conf;

how I need to modify this file for both sites to work properly ?

i have already installed both wordpress installations, the only problem is URL rewrite on subfolder that not work correctly.


You need to tell Nginx what to do for that subfolder, i.e add this inside your server block, below the include lines:

location /news/ {
    try_files $uri $uri/ /news/index.php?$args;

and reload nginx to pick up the changes:

ee stack reload

1 Like