Page 1 of 1
How To Redirect HTTP To HTTPS For All Domain
Posted: Mon Nov 22, 2021 7:56 pm
by crafter
You gave a step for rediecting a wordpress site fromm http to https but the process does not seem to work for other non wordpress site like mine which also needs a http to https redirect. i tried to do from htaccess file of my site but i keep getting errors. please how can i do a http to https redirect. i have apache and nginx installed on my panel
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Tue Nov 23, 2021 9:04 pm
by T4B
crafter wrote: ↑Mon Nov 22, 2021 7:56 pm
You gave a step for rediecting a wordpress site fromm http to https but the process does not seem to work for other non wordpress site like mine which also needs a http to https redirect. i tried to do from htaccess file of my site but i keep getting errors. please how can i do a http to https redirect. i have apache and nginx installed on my panel
change the proxy template

- image
- Capture.PNG (27.71 KiB)
I hope this method helps you
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Wed Sep 06, 2023 7:11 pm
by mckaygerhard
this only for apache crap, what about non-aapache and nginx only?
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Fri Oct 06, 2023 10:21 pm
by sound4you
MyVesta basic configuration apache, nginx. I don't know why dpeca and the myvesta team offers support and nginx php-fpm support. From what I've read around here, no. You can opt for the other VestaCp fork. Good luck!
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Thu Nov 16, 2023 5:12 pm
by shally87
I turned on always use https in cloudflare.
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Fri Nov 29, 2024 4:17 am
by gn7
You can just edit the config:
You edit the non-ssl file: sitename.nginx.conf file, like so:
(where xxx is your ip and replace [domainname] with your real domain name):
listen xx.xxx.xxx.xxx:80;
server_name [domainname];
#to force use of httpS:
return 301 https://$server_name$request_uri;
Remember to restart nginx. Works for me.
—-
Re: How To Redirect HTTP To HTTPS For All Domain
Posted: Tue Dec 03, 2024 6:11 am
by spoidyjan
If you use Nginx, you can try what gn7 said. Edit the sitename.nginx.conf file and restart Nginx. For Apache, you can use .htaccess or the proxy template.