Want create site? Find Free WordPress Themes and plugins.

Drupal is one of the most powerful content management systems available today. Used by millions of websites, both large and small, this open source platform is highly scalable and lightning fast. If your website runs on Drupal, you’re in very good company. The White House, Australian Government, The Weather Channel, and NBC, are just a few high-profile sites that use Drupal to manage and deliver online content. In today’s online environment, we highly recommend you to leatn how to move a drupal site from http to https. And here’s why.

As flexible as Drupal is, it can’t cover all your website’s needs. Whether you have a blog, an e-commerce shop or a membership site, it’s important to protect users’ personal data that travels between their browsers and your server.

To accomplish this in the most professional and safest way, you need to add an SSL Certificate to your website. While it’s not this article’s goal to dive deep into the specifics of SSL, we can’t leave novice users in the dark. If you’re new to SSL certificates, the following links are a quick way to get familiar with all things SSL.

A technical overview of how SSL certificates work
How to choose the best SSL certificate for your website?
Why is an SSL Certificate important for your online store?
7 Reasons Why You Should Get an SSL Certificate for Your Blog

Now let’s focus on the main purpose of this article.

How to move a Drupal Site from HTTP to HTTPS

The first thing to do after you install and configure your SSL Certificate is to check if it works properly. Here are the ultimate tools for buying and testing an SSL Certificate. If no errors are found, you can now safely add HTTPS to your website.

You may want to activate HTTPS only in certain places such as login page, or shopping cart. But switching between HTTP and HTTPS may compromise your secured session. Google likes full HTTPS sites and even gives them a nice SEO boost. You don’t want to miss that.

You can force HTTPS on your entire website in two ways. The quickest one is to update your .httaccess file in the root. Simply add the following code below “RewriteEngine on”

RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} offRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

The second way is to use Drupal modules and force HTTPS from your frontend dashboard. You can search for modules here.

Now that all your traffic is redirected to HTTPS, it’s time to add the final touches to our transition. Inspect your templates for any remaining HTTP resources such as media files, css, js, etc. and add an S to the HTTP. If you used absolute paths on local images, you may have quite a lot of replacing to do. Writing an SQL statement to a find and replace your hyperlinks will save you a lot of time.

Finally, let Google know that all your content is being served now over HTTPS. Updated your xml sitemap with the latest HTTPS links and send it Google webmaster tools. Use Robots.txt file to control which pages will be crawled and indexed.

And that should be it. Learning how to move a Drupal site from HTTP to HTTPS is not a difficult process. If you still face problems after following the steps we have outlined above, contact your hosting provider, or ask the Drupal community for help on the official Drupal forum.

Did you find apk for android? You can find new Free Android Games and apps.