An easy solution is to use .htaccess rules.
#Redirect HTTP to HTTPS
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Related Posts:
- Switch from https back to http
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Changing HTTP to HTTPS
- WordPress changing script source from https to http
- Staging Session Randomly Switched from Secure (https) to Not Secure
- Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS
- Navigation Bar displays vertically on Mozilla
- Whole website redirected to httpa but in dashboard settings still http
- How to redirect all HTTP requests to HTTPS
- @ converted to %40 in HTTPPost request
- Custom Tumblr theme wont save because of non-https urls?
- Ngrok errors ‘502 bad gateway’
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- ndroid 8: Cleartext HTTP traffic not permitted
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- Https to http redirect using htaccess
- curl: (60) Peer’s Certificate issuer is not recognized.
- Why is WordPress redirecting from http to https on a local environment?
- Stop WordPress from using HTTPS and just use HTTP
- Use https for img src
- WordPress in HTTPS, causing Redirect Loops
- force http canonical tag on https pages
- Upgrade to SSL Breaks Admin Dashboard
- Redirect www to non-www htaccess
- Remove HTTP: from the site URL and just keep // in it
- How are both HTTP and HTTPS versions displaying?
- WordPress – https : Css and Js files are not working (load on http instead of https)
- Redirect from https to http or from http to https? [closed]
- Cant Access Website – Changed HTTP to HTTPs
- How to deactivate/remove https on localhost project from online
- Access general settings trough wordpress files
- Broken urls with http site and https wp-admin
- Divert http to https with WordPress on IIS
- Can’t login to Dashboard when changing site URL to HTTPS
- Redirect http to https does not work on subdir where another instance of WordPress installed
- 403 error on admin login page
- Changing http to https in wp_options
- Moving from http to https, and www. to non-www URL
- Is it necessary to check for `content-type` in headers?
- Force SSL 100%?
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Modify a plugin to open external links with iframe using https and not http?
- How to fix mixed content warnings for plugin resources?
- How to use https on one page only?
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- WordPress forces HTTPS to HTTP in template
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- Any any insecure http:// URLs left in wordpress?
- WordPress HTTP requests point to localhost server after move to live HTTPS server
- How to make my site use HTTPS for images or how to insert images as relative paths?
- Internet Explorer “Security Information” on every page in https site
- How to convert srcset links from https to http?
- My site doesn’t redirect from HTTP to HTTPS
- Choosing http or https during manual installation of WordPress and database
- Category links break the https
- https to https problem – 404 and can’t login
- Can’t access Admin Panel
- Issues with forcing HTTPS
- Make WordPress site secure through HTTPS and SSL
- What is the “Force secure connections” option used for?
- White page on requests with Sec-Fetch-Site: cross-site
- Broken css on mobile phones only on https
- Redirecting specific sites to HTTP in WordPress Multisite
- Website Migration (with https) to a new domain(http)
- Plesk login inaccessible after changing site URL
- Windows-hosted new site shows no preview: “Future home of something quite cool.” message is displayed
- Understanding Redirects
- Why does WordPress uses HTTPS for JS, CSS on EC2
- Specific Page/Post Need to Stay Non SSL
- mixed contents admin panel is Unsecured
- Implications of not completing all tasks when switching to HTTPS
- Redirect HTTP request to HTTPS request
- Issues after switching over to HTTPS
- content block https from http
- Using the JSON API via HTTPS and HTTP
- Why is http header providing 404 while site is online?
- Moving site from HTTP to HTTPS
- ERR_TOO_MANY_REDIRECTS when I change http to https
- How to switch static files back to using HTTP instead of HTTPS?
- I just updated to Https from Http, Should I change WordPress Address (URL) and Site Address in WordPress Dashboard?
- i can’t enter to control panel of my WordPress site
- CSS/JS is not working in multi lang installation
- Turn off https in WordPress 4
- Change links beginning from http:// to // so that https site can get correct CSS/JS files
- WordPress HTTPS – ‘… better to use HTTP for installation …’
- Any idea on how to fix this error when forcing SSL on a certain page?
- how to server over http and https with one installation
- Nice font not working when http to https – SSL Issue
- Duplicator live to wamp https to http
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- wordpress website crash on https
- http to https stuck in infinite loop
- Is it bad to redirect http to https?
- How to test a HTTPS URL with a given IP address
- Best way to redirect all HTTP to HTTPS in IIS
- Changing my URL in General Settings cause the site to crash
- Development to production, how to move a development site from http + dev.example.com to a production site https + example.com?
- How to force HTTP and stop SSL completey on WordPress website
- How do I make the block editor use https by default?