Add the following to your .htaccess..
# force https on the front of the site
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ref https://stackoverflow.com/questions/4398951/force-ssl-https-using-htaccess-and-mod-rewrite
if on nginx the advice is for the following..
server {
listen 80;
server_name yoursite.com www.yoursite.com;
return 301 https://yoursite.com$request_uri;
}
refer to http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/
for other areas such as the site settings changes for https.
Related Posts:
- Switch from https back to http
- WordPress behind Proxy – Mixed Content
- Ngrok errors ‘502 bad gateway’
- curl: (60) Peer’s Certificate issuer is not recognized.
- Switching MultiSite installation from HTTP to HTTPS
- Stop WordPress from using HTTPS and just use HTTP
- Chrome Version 44.0.2403.89 m is trying to force HTTPS
- Use https for img src
- WordPress in HTTPS, causing Redirect Loops
- Serving HTTP and HTTPS from one installation
- Remove HTTP: from the site URL and just keep // in it
- WordPress redirect loop on nginx + apache reverse proxy
- How to deactivate/remove https on localhost project from online
- Remove site root trailing slash
- Infinite loop behind SSL proxy on non-standard port
- Changing http to https in wp_options
- Force SSL 100%?
- Redirect URL on OAuth2.0 after switching from http to https
- Modify a plugin to open external links with iframe using https and not http?
- How to fix mixed content warnings for plugin resources?
- Receiving 404 when uploading file larger than 10kb
- Changing HTTP to HTTPS
- Avoid the removal of “https:” from URLs
- WordPress changing script source from https to http
- WordPress forces HTTPS to HTTP in template
- WordPress HTTP requests point to localhost server after move to live HTTPS server
- Internet Explorer “Security Information” on every page in https site
- Category links break the https
- 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
- How to access wordpress from domainB which is installed at domainA
- Plesk login inaccessible after changing site URL
- Windows-hosted new site shows no preview: “Future home of something quite cool.” message is displayed
- why is my wordpress not loading any images?
- Staging Session Randomly Switched from Secure (https) to Not Secure
- Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS
- Issues after switching over to HTTPS
- content block https from http
- Update siteurl and home in multisite subsites to https
- Navigation Bar displays vertically on Mozilla
- ERR_TOO_MANY_REDIRECTS when I change http to 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
- Turn off https in WordPress 4
- Change links beginning from http:// to // so that https site can get correct CSS/JS files
- HTTPS for every page except for feeds
- ‘Too many redirects’ error after changing site URL in WordPress [closed]
- wordpress website crash on https
- Whole website redirected to httpa but in dashboard settings still http
- http to https stuck in infinite loop
- In Nginx, how can I rewrite all http requests to https while maintaining sub-domain?
- nginx HTTPS serving with same config as HTTP
- How to test a HTTPS URL with a given IP address
- Properly setting up a “default” nginx server for https
- Remove “www” and redirect to “https” with nginx
- wordpress is auto using http: not https: as it needs to because the server is http behind a reverse proxy https, how do I stop it?
- SSL Error: unable to get local issuer certificate
- 400 Bad Request – request header or cookie too large
- How can I use environment variables in Nginx.conf
- How to redirect all HTTP requests to HTTPS
- “413 Request Entity Too Large” in Nginx with “client_max_body_size” set
- How can I make git accept a self signed certificate?
- What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?
- https connection using CURL from command line
- HTTPS connections over proxy servers
- Possible reason for NGINX 499 error codes
- Terminal error: zsh: permission denied: ./startup.sh
- How can I use an .htaccess file in Nginx?
- @ converted to %40 in HTTPPost request
- Curl command for https ( SSL )
- Nginx: Failed to start A high performance web server and a reverse proxy server
- HAProxy vs. Nginx
- nodejs – error self signed certificate in certificate chain
- Custom Tumblr theme wont save because of non-https urls?
- Simple Java HTTPS server
- Nginx 403 forbidden for all files
- Unrecognized SSL message, plaintext connection? Exception
- HTTPS connection Python
- Make a HTTPS request through PHP and get response
- How to execute a https GET request from java
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Enabling HTTPS on express.js
- Node.js + Nginx – What now?
- Nginx upstream prematurely closed connection while reading response header from upstream, for large requests
- NGINX: upstream timed out (110: Connection timed out) while reading response header from upstream
- nginx: connect() failed (111: Connection refused) while connecting to upstream – after update nginx –
- How to fix nginx throws 400 bad request headers on any header testing tools?
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Mixed Content Page: requested an insecure stylesheet error
- How do you redirect HTTPS to HTTP?
- How to use NGINX as forward proxy for any requested location?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- How to verify if nginx is running or not?
- 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
- Python requests SSL error – certificate verify failed
- Could not create work tree dir ‘example.com’.: Permission denied