There is 1 redirect

I tried all the ways to skip this problem , my website on wordpressand I keep getting There is 1 redirect redirects t

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
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745671889a4639453.html

相关推荐

  • There is 1 redirect

    I tried all the ways to skip this problem , my website on wordpressand I keep getting There is 1 redirect redirects t

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信