Configure Drupal for SSL

106 views
asked Feb 2, 2013 in SSL by DruNew (1,930 points)
Hi all
What is the simplest way to configure Drupal for SSL?
Thanks

1 Answer

0 like 0 dislike
answered Feb 2, 2013 by RalphK (5,800 points)
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.
...