Why http url auto redirect to https?
-
How to force your site to redirect to https (SSL)
I’m facing issue please help? -
When you add an SSL certificate to your website, the URL visitors use to view your site changes from HTTP to HTTPS. The ‘S’ ensures that your connection is encrypted. After adding an SSL certificate you should force all URLs on your site to automatically redirect to the HTTPS version.
-
In HTTP, redirection is triggered by a server sending a special redirect response to a request. Redirect responses have status codes that start with 3 , and a Location header holding the URL to redirect to. When browsers receive a redirect, they immediately load use the new URL provided in the Location header.
-
it causes the Cloudflare Automatic HTTPS Rewrites enabled
Automatic HTTPS Rewrites are now available in the customer dashboard for all CloudFlare customers. Today, this feature is disabled by default and can be enabled in ‘one click’:
We will be monitoring the performance and effectiveness of this feature and enable it by default for Free and Pro customers later in the year. We also plan to use the Content Security Policy reporting features to give customers an automatic view of which URIs remain to be upgraded so that their transition to all https:// is made as simple as possible: sometimes just finding which URIs need to be changed can be very hard as Wired found out.
-
@zareen said in Why http url auto redirect to https?:
How to force your site to redirect to https (SSL)
- log into your cPanel and access the redirects section.
- Set Type to Permanent (301)
- Next to redirects to, enter your website’s url using the Shared SSL Certificate.
- We recommend having Redirect with or without www. …
- Ensure Wild Card Redirect is selected.
- Click Add.