Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter miguelkennedy

    (@miguelkennedy)

    Nevermind, managed to get it working by adding the following lines in my nginx site config file

    location /NAME_OF_STAGING_FOLDER {
    index index.html index.htm index.php;
    try_files $uri $uri/ /NAME_OF_STAGING_FOLDER/index.php?$args;
    }

    Note: Change NAME_OF_STAGING_FOLDER with the actual name of your staging site’s folder

    Plugin Author Rene Hermenau

    (@renehermi)

    Thats excellent. Thanks so much for the answer. I will stick your answer at the top of the support questions:)

    Hi, please, explain.

    “my nginx site config”:
    1. it’s “nginx.conf”?
    2. in staging site’s folder or in main site folder?

    Thread Starter miguelkennedy

    (@miguelkennedy)

    Hi, adminunoia.

    In your nginx config file for your site, usually located at /etc/nginx/sites-available or /etc/nginx/sites-enabled.

    Your need to write the code I posted above inside your server { } block in that config file… NAME_OF_STAGING_FOLDER should be the name you gave to your staging site when you created it with WP Staging plugin.

    nginx.conf is the main config file for nginx… You should not write the code in this file, instead you write it in the config file specific to your site. Check the folder locations I wrote above.

    Hope this helps.

    This helps! Thnx!

    Plugin Author Rene Hermenau

    (@renehermi)

    Thank you very much for your help Miguel:)

    Thread Starter miguelkennedy

    (@miguelkennedy)

    No worries, Rene ??

    Thanks for making such great plugin. I use it daily!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalinks in nginx’ is closed to new replies.