Answer the question
In order to leave comments, you need to log in
How to make wordpress serve https links?
There is a site on http, you need to transfer to https. Apache is configured to redirect, the https version basically works (OK 200 and the page is loaded), but in the browser console there are errors "Mixed Content", because all scripts+styles+etc are loaded via http protocol.
Define('FORCE_SSL_ADMIN', true) is written in wp-config, it doesn't help.
When you try to change the siteurl and home options in the database in the `wp_options` table from http to https, the admin panel and the site itself fall, respectively.
What's wrong?
Answer the question
In order to leave comments, you need to log in
Hello!
To correctly transfer the site to https, you need the following:
1) change the site URL through the database or in the admin panel to https
2) install the Better Search Replace plugin and replace http with https
3) update robots & sitemap (for SEO)
4) set up redirects at the level apache or nginx servers
5) if there are absolute paths, then change them to relative or absolute but with https
6) if your site crashes, then you probably get a too many requests error or something like that ... Dig into the htaccess settings
7) define('FORCE_SSL_ADMIN', true) is needed for the admin panel to work via ssl
8) After switching to ssl, don't forget to check the contact forms. for example, with a crookedly installed certificate (such as self-signed LE), there may be errors with sending. Disable SSL validation for the plugin (e.g. CF7)
Maybe you have absolute paths to something (pictures, fonts, etc.) in the theme itself or in functions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question