admin管理员组文章数量:1435859
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
Share Improve this question edited Mar 19, 2019 at 21:00 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Mar 19, 2019 at 20:00 Mohd AljarabaMohd Aljaraba 11 bronze badge 5- Have you tried clearing your browser's history completely, or checking with a HTTP header checker? Browsers cache redirects, so even if your update was successful, your browser may just be showing you what it saved previously. – WebElaine Commented Mar 19, 2019 at 20:02
- I got this error Redirect type 301 Moved Permanently – Mohd Aljaraba Commented Mar 19, 2019 at 20:34
- b-secrets.ro [301] – Mohd Aljaraba Commented Mar 19, 2019 at 20:34
- b-secrets.ro [200] – Mohd Aljaraba Commented Mar 19, 2019 at 20:34
- A 301 is a status, not an error. The non-www link you posted takes the visitor to the www version as intended. Where is it you're seeing the text that it is 301 redirected? – WebElaine Commented Mar 19, 2019 at 20:47
1 Answer
Reset to default 0The 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
.
本文标签: There is 1 redirect
版权声明:本文标题:There is 1 redirect 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745671888a2669618.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论