When we install https on our wordpress blog, then the most important thing is to redirect your blog links to http to https so that traffic starts coming to your new version, this step is very important for search engine optimization. But the problem increases when you add http to https redirection code, then it does not allow your site to load properly on the browser.
This problem comes to many people, but now you do not need to worry.
When you install SSL on a wordpress site then the most important thing is that our content search engine has already been indexed, which is https without redirecting it to https so that when a visitor came from Google search redirect to https link. With this, our traffic loss is completely avoided, meaning there is no kind of organic traffic loss.
RewriteEngine On
RewriteBase /
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
In order to optimally design our website and to show appropriate offers we are using cookies. By continuing to use our website you agree that we set cookies. More information