admin管理员组文章数量:1425733
I want to moving my site followourtrack.fr from http to https but i have the message ERR_TOO_MANY_REDIRECTS
wp-config.php :
define('WP_HOME','/');
define('WP_SITEURL','/');
.htaccess file :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
I need to help
Thank you :)
I want to moving my site followourtrack.fr from http to https but i have the message ERR_TOO_MANY_REDIRECTS
wp-config.php :
define('WP_HOME','https://www.followourtrack.fr/');
define('WP_SITEURL','https://www.followourtrack.fr/');
.htaccess file :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
I need to help
Thank you :)
Share Improve this question edited Jun 11, 2019 at 14:02 Pratik Patel 1,1111 gold badge11 silver badges23 bronze badges asked Jun 11, 2019 at 13:12 ValentinValentin 1 1- Do you have any experience with WP-CLI?? – ChristopherJones Commented Jun 11, 2019 at 15:08
3 Answers
Reset to default 0First you must Update the Site Address under Settings > General. Make sure the address is https://www.followourtrack.fr/. After that update your .htaccess like below.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
That .htaccess can work with fine in my server.
Try removing the trailing slashes from the wp-config definitions, so they read:
define('WP_HOME','https://www.followourtrack.fr');
define('WP_SITEURL','https://www.followourtrack.fr');
If that fails, try removing the www from those entries:
define('WP_HOME','https://followourtrack.fr');
define('WP_SITEURL','https://followourtrack.fr');
edit your mysql database directly and change sitename
and blogurl
(both of which are in the wp_options table) and change them both to 'https://www.followourtrack.fr'
本文标签: Moving wordpress site from HTTP to HTTPS ERRTOOMANYREDIRECTS
版权声明:本文标题:Moving wordpress site from HTTP to HTTPS ERR_TOO_MANY_REDIRECTS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745413844a2657591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论