Mod Rewrite Settings - SSL and Drupal 7

Hi guys, I have something that may be pretty trivial. But we have a website with a Certificate, but not for WWW subdomain. we want to redirect automatically to SSL and not with WWW, but still correctly parse the ?q= from drupal. Can anyone help. This is what we have existing, just not the q= functionality.


RewriteOptions inherit
RewriteEngine On
RewriteCond %{HTTPS} !=on

RewriteCond %{REQUEST_URI} !^/site/user_test.php
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "https\:\/\/www\.mysite\.com\/site" [R=301,L]

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^index\.html$ "https\:\/\/www\.mysite\.com\/site" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^register$ "https\:\/\/mysite\.com\/site\/\?q\=user\/register" [R=301,L]


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.