Recently, I have added SSL certificate to my academy website- Successrisers.
Before adding this, my google page insight score was 100/100 both on mobile and desktop device. Also, pingdom tool didn’t show any issue.
But after adding SSL certificate to my website, performance decreased due to redirect chain issue. Somehow, I made some change in .htaccess of WordPress and get back 100/100 google page insight score. But Pingdom tool is still showing redirection chain issue.
The error is shown like this.
{Remove the following redirect chain if possible:
http: //successrisers.com/
http: //www.successrisers.com/}
Please also have a look at my .htaccess file code given here-
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^successrisers.com$
RewriteCond %{SERVER_NAME} ^www.successrisers.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security "max-age=300"
</IfModule>
# END GD-SSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Kindly suggest me some changes so that I can get over from this url redirection chain error.
Thanks
Read more here: wordpress- How to remove the following redirect chain after adding SSL certificate?