Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Using redirects to have https by default?



Threaded Mode | Print  

 Using redirects to have https by default? (3 Replies, Read 639 times)
nexperia
Group: Member
Post Group: Newbie
Posts: 2
Status:
I apologize in advance since I am not a tech person:

I have a domain with a provider and I redirect it via dns on an external  VPS running Webuzo.
- Redirect to webuzo works fine.
- I have also installed ssl certificate using Let's Encrypt and works ok.
- I therefore can reach https://mydomain as well as http://mydomain

However what I would like to do is to force https by default so that end users do not need to type https, how can I achieve this?

I have tried with the Redirects option int the Webuzo end user domain section:
it does redirect, but I keep getting the "too many redirects error message".

Please help me, I have spent a whole day trying to achieve that.

Thank you!

Antonio
IP: --   

Using redirects to have https by default?
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 468
Status:
Hi Antonio,

You can force your domain to https by default using the .htaccess file if you are using Apache as your default web server. You can refer to the below guide for the code on how to redirect using .htaccess:
http://www.inmotionhosting.com/support/website/ssl/how-to-force-https-using-the-htaccess-file

Hope this helps you. Please let us know if you need any further information. We will be happy to help you.
IP: --   

Using redirects to have https by default?
nexperia
Group: Member
Post Group: Newbie
Posts: 2
Status:
Thanks for your response, could not try your solution, although I am sure it works, since I found another similar way to achieve that by adding the following code in th htaccess inside the drupal installation:

# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

That seems to work for me

Regards
IP: --   

Using redirects to have https by default?
nikhil.m
Group: Webuzo Team
Post Group: Working Member
Posts: 234
Status:
Hi nexperia,

Thanks for posting the solution :)
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is June 18, 2018, 3:47 pm.

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