I have the script:
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Rewrite rule to redirect /old to /new
RewriteCond %{REQUEST_URI} ^/old$
RewriteRule . /new [L,R=301]
Which will redirect http://example.com to http://www.example.com, but would like this script to work the same if a user requests the URL via HTTPS? I can't seem to find a solution anywhere.... =/
Anyone have any ideas?
Thanks