[BlueOnyx:11739] Re: Using rewrite in .htaccess file with SSL enabled

Robert Fitzpatrick robert at webtent.org
Sat Dec 1 09:43:30 -05 2012


On 11/30/2012 11:09 PM, Chris Gebhardt - VIRTBIZ Internet wrote:
> 
> On 11/30/2012 9:32 PM, Robert Fitzpatrick wrote:
>> I have SSL enabled on a site and want to add rewrite directives in the
>> site .htaccess file to force https on a sub folder like this...
>>
>> RewriteEngine On
>> RewriteCond %{SERVER_PORT} !443$
>> RewriteRule ^/order/(.*)$ https://www.enzyscience.com/order/$1 [R,L]
>>
>> Seems to ignore rewrite directives unless I add this to a sites include
>> file in the httpd conf file for the vhost...
>>
>> <Directory /home/.sites/148/site6/web/>
>>          Options All
>>          AllowOverride All
>>          Order allow,deny
>>          Allow from all
>> </Directory>
> 
> Robert,
> Do you have the appropriate options enabled in BlueOnyx?  From the 
> BlueOnyx GUI, Server Management -> Network Services -> Web.  Then check 
> your options & allow override.  You can try with Allow All and then you 
> shouldn't have a problem.
> 

Thanks Chris, yes, I failed to say before that AllowOverride All was
enabled in the GUI and I added Options All, but the .htaccess would
still not recognize my Rewrite directives, they just seem to be ignored.
I was wondering if the .htaccess was firing at all, but putting the word
'test' in the file produced a 500 Internal error, so it seems to just
not like my Rewrite directives. Any ideas?




More information about the Blueonyx mailing list