Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : NGINX REDIRECT



Threaded Mode | Print  

 NGINX REDIRECT (3 Replies, Read 1446 times)
tonymlWb01
Group: Member
Post Group: Newbie
Posts: 8
Status:
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
IP: --   

NGINX REDIRECT
Dhanya
Group: Softaculous Team
Post Group: Working Member
Posts: 166
Status:
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.
IP: --   

NGINX REDIRECT
tonymlWb01
Group: Member
Post Group: Newbie
Posts: 8
Status:
Great, it works, but I change for 301 instead 302. Thank you.
IP: --   

NGINX REDIRECT
Dhanya
Group: Softaculous Team
Post Group: Working Member
Posts: 166
Status:
Hi,

Glad to know that your issue has been resolved.

Let us know if you face any issues further.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is October 18, 2019, 11:31 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.205