Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Configure Drupal for SSL

Feb 2, 2013 by DruNew
Hi all
What is the simplest way to configure Drupal for SSL?

1 Answer

0 votes
Feb 2, 2013 by RalphK
Using your  FTP program, download your .htaccess file and open it using Notepad.Then add the following lines of code at the top if your .htaccess file
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
f your Drupal is  installed within a subfolder use this code instead.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} yoursubfolder
RewriteRule ^(.*)$ https://www.yourdomain.com/somefolder/$1 [R,L]
Then save your .htaccess file and upload it back to your hosting account using your FTP access program.