Configure Drupal for SSL

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

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 ^(.*)$$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 ^(.*)$$1 [R,L]
Then save your .htaccess file and upload it back to your hosting account using your FTP access program.