[support] https and htaccess

Lynn Stott (Stott Design) lynn at stottdesign.com
Fri Jul 22 16:47:26 UTC 2011


Thanks Jamie for sticking with me!

This works when someone browses without the "www", but doesn't work with www.mysite.com

Thanks,
Lynn Stott
www.stottdesign.com
208.871.0073


On Jul 22, 2011, at 10:32 AM, Jamie Holly wrote:

> Shouldn't have done it from memory LOL. Try this one:
> 
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
> 
> 
> Jamie Holly
> http://www.intoxination.net 
> http://www.hollyit.net
> 
> On 7/22/2011 12:07 PM, Lynn Stott (Stott Design) wrote:
>> 
>> This doesn't work.
>> 
>> Thanks,
>> Lynn Stott
>> www.stottdesign.com
>> 208.871.0073
>> 
>> 
>> On Jul 22, 2011, at 9:56 AM, Jamie Holly wrote:
>> 
>>> Generic to force everything to ssl:
>>> 
>>> ReWriteCond %{SERVER_PORT} !^443$
>>> RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
>>> Jamie Holly
>>> http://www.intoxination.net 
>>> http://www.hollyit.net
>>> 
>>> On 7/22/2011 11:52 AM, Lynn Stott (Stott Design) wrote:
>>>> 
>>>> Yes, Linux, VPS, not shared.
>>>> 
>>>> No support on this from my host... on my own with this and I just don't know .htaccess. 
>>>> 
>>>> Thanks,
>>>> Lynn Stott
>>>> www.stottdesign.com
>>>> 208.871.0073
>>>> 
>>>> 
>>>> On Jul 22, 2011, at 8:17 AM, Shai Gluskin wrote:
>>>> 
>>>>> Lynn,
>>>>> 
>>>>> Are you on a Linux server? I think you are talking about using a mod_rewrite solution which, I think, only works on Linux.
>>>>> 
>>>>> mod_rewrite is incredibly powerful and fussy. I wouldn't risk advising you on the actual script.
>>>>> 
>>>>> I actually think this kind of question might best be handled by the support team at your server company. I'm not saying you shouldn't ask here... but if you don't get a response that helps, that is another route to go.
>>>>> 
>>>>> Shai
>>>>> 
>>>>> On Fri, Jul 22, 2011 at 10:10 AM, Lynn Stott (Stott Design) <lynn at stottdesign.com> wrote:
>>>>> Can some help with .htaccess? 
>>>>> 
>>>>> How do you redirect all 
>>>>> https://www.site.com 
>>>>> http://www.site.com 
>>>>> http://site.com
>>>>> 
>>>>> to
>>>>> 
>>>>> https://site.com
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> 
>>>>> --
>>>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>>> 
>>>>> -- 
>>>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>> 
>>> -- 
>>> [ Drupal support list | http://lists.drupal.org/ ]
>> 
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110722/f0290ee5/attachment-0001.html 


More information about the support mailing list