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

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Fri Nov 30 23:09:54 -05 2012


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.

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list