Answer the question
In order to leave comments, you need to log in
How to change https to http wp?
When setting up WordPress, I accidentally set https, I don’t really want to buy an ssl certificate separately, since I’m not an online store and I don’t accept payment. How to return the address to http in the browser? because users get a warning
Answer the question
In order to leave comments, you need to log in
There wp-config.php
must be a code
// Determine HTTP or HTTPS, then set WP_SITEURL and WP_HOME
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)
{
$protocol_to_use = 'https://';
} else {
$protocol_to_use = 'http://';
}
define( 'WP_SITEURL', $protocol_to_use . $_SERVER['HTTP_HOST']);
define( 'WP_HOME', $protocol_to_use . $_SERVER['HTTP_HOST']);
$protocol_to_use = "http://"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question