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?
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- Redirecting from HTTP to HTTPS with PHP
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- Disable SSL / HTTPS for wordpress
- Rewrite default post type
- After updating site to use SSL all images in posts point to http://
- force http canonical tag on https pages
- Sub-domain or 2nd, temporary different domain?
- Concatenate site_url and string doesn’t work
- Menu links only using http after enabling https, unable to redirect http links
- Giving WordPress its own subdirectory – nginx
- some url does not redirect from http to https
- WordPress SSL (https) is not working with custom permalink
- Are theme .php files stored in the database?
- WordPress and nginx, download some pages instead of serving them
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- My add_rewrite_rule is returning a 404
- How to get Caching Plug-ins to work on localhost with HTTPS?
- How to register and set http/2 server prefetch for a specific asset?
- Accidentally changed website url
- Site Address and WordPress Address settings when using a load balancer
- Some permalinks are not working and show 404
- Alternatives to site_url() and get_template_directory_uri()
- Setup another new subdomain root on top of multisite configuration
- Do I need a DNS on a home network?
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- WordPress/NGINX not respecting the category URL for new posts
- Why https://www. SUBdomain is redirected by WP to https://MAINdomain
- Passing taxonomy id of taxonomy clicked on one page to another page
- Nginx rules for subdomain multisite install (Bedrock)
- Random HTTPs redirections at admin area in shared hosting
- Core update of 4.2.3 changes all link to https [duplicate]
- Removing all my hardcoded URLs with get_site_url()
- Access wordpress pages using a self signed shared ssl
- check if .min.css stylesheet exists
- Pagespeed Error in Nginx
- Advice on WP site structure using multisite
- How can I see which flags Nginx was compiled with?
- How to reply with 200 from Nginx, without serving a file?
- Nginx enable site command
- How do I make the block editor use https by default?