Mobile app version of vmapp.org
Login or Join
Odierno851

: How to make my website resolve to https As of right now if I type: example.com I'll get http://example.com. I have all the pages set to use HTTPS and after clicking on any link it will start

@Odierno851

Posted in: #Dns #Https

As of right now if I type: example.com I'll get example.com. I have all the pages set to use HTTPS and after clicking on any link it will start using HTTPS. Is there something I need to change? If I type google.com, I'll get google.com.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Holmes151

You need to set up a redirect from mywebsite.com/<whatever> to mywebsite.com/<whatever>. It's not a DNS issue at all, and how to do it is entirely dependent on exactly what web server software you're using and how it's configured.

For example, if you use Apache you can create an .htaccess file in the root directory of your website:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ %{HTTP_HOST}%{REQUEST_URI} [L,R=301]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme