Open your terminal and login your server.
1 2 |
sudo nano /etc/nginx/sites-available/example.com |
add location
1 2 3 4 |
location /subfolder/ { try_files $uri $uri/ /subfolder/index.php?$args; } |
and restart nginx
1 2 |
sudo service nginx restart |