SEO 301 redirect from http to https

Recently our site was moved from http to https. Moving a big site like ours was not easy. It took us a lot of time to move. We had too many static pages which made our life difficult. When we move our site from http to https it is important that move everything to the secure section.

SEO 301 redirect from http to https

Areas to consider are CSS, images, JavaScript and any other client side includes should be from secure section. If your URLs are relative you don’t have a problem but if your URLs are absolute then you have a problem in your hand. Make sure you search and replace all URLs that have absolute links. We search for pages with URLs like

http://www.searchenginegenie.com,

http://searchenginegenie.com,

http://facebook.com etc.

These type of URLs are replaced with https instead of http.

But before moving into all these details make sure https works perfectly on your site. Next important thing is to 301 redirect all http pages to https pages.

Because we are on an Apache server we used this code in our .htaccess file.\

RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

This code worked great till we went into our wordpress pages.

We have about 8 wordpress blogs.

Insert code here

Then we need to login to our wordpress section and change the htaccess files there. We replaced above code in .htaccess in each wordpress blog root section. Boom it worked. We never had any problems after that.

To make sure browsers don’t throw insecure content error for wordpress blogs. Use “wordpress https” plugin. It is freely available for download.

If anyone need help moving site to a secure server contact us we are more than willing to help you.

No comments yet.

Leave a comment

Request a Free SEO Quote