I tried all the ways to skip this problem , my website on wordpress and I keep getting There is 1 redirect
/ redirects to /
I change my site to on phpmyadmin and I have this code on .htaccess
#redirect non-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
and this code on wp-config :
define('WP_HOME','');
define('WP_SITEURL','');
and I still this error
I tried all the ways to skip this problem , my website on wordpress http://www.b-secrets.ro and I keep getting There is 1 redirect
http://b-secrets.ro/ redirects to https://www.b-secrets.ro/
I change my site to http://wwwb-secrets.ro on phpmyadmin and I have this code on .htaccess
#redirect non-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
and this code on wp-config :
define('WP_HOME','http://www.b-secrets.ro');
define('WP_SITEURL','http://www.b-secrets.ro');
and I still this error
The 301 redirect is from http://
to https://
.
Your rewrite rule specifies https://
while your WP_HOME
and WP_SITEURL
are set to use http://
.
That's why you're seeing the 301 redirect from http://www.b-secrets.ro
to https://www.b-secrets.ro
.