Softaculous


Topic : NGINX REDIRECT


Posted By: tonymlWb01 on January 21, 2019, 1:13 am
Hello, I´m trying to redirect to www and https using Nginx but was impossible. I think is using extra configuration tool in webuzo panel but I the codes I´ve been trying doesn´t works. Thanks

Posted By: Dhanya on January 21, 2019, 7:57 am | Post: 1
Hi,

Try by adding the following in a .conf file and upload it in Nginx through Extra Configuration page for your domain:
if ($scheme = http) {
        return 302 https://www.$server_name$request_uri;
}

Let us know if you face any issues further.

Posted By: tonymlWb01 on January 21, 2019, 8:57 am | Post: 2
Great, it works, but I change for 301 instead 302. Thank you.

Posted By: Dhanya on January 21, 2019, 11:02 am | Post: 3
Hi,

Glad to know that your issue has been resolved.

Let us know if you face any issues further.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.