C
chaoticmess
Guest
Hi,
I've a dedicated server at GoDaddy and would like to have all my traffic run over http unless someone is using the shopping cart and in that case traffic should be wrapped in https. The SSL port is running the default plesk page. I've written apache rewrite rules to allow me to convert anything without shoppingcart in the request to be redirected to http and anything with it to be redirected to https. I've rules like this
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^www.domainforme.com$
RewriteCond %{REQUEST_URI} !^/shoppingcart
RewriteRule ^(.*)$ http://www.domainforme.com/$1 [R,L]
I've placed these statemesnts in /etc/httpd/conf.d/zz010_psa_httpd.conf and done a apachectl graceful but my rules don't take effect. Where's the best place for http to https (and vice versa) rewrite rules to be and why doesnt apachectl control the server as expected.
Thanks, CM
I've a dedicated server at GoDaddy and would like to have all my traffic run over http unless someone is using the shopping cart and in that case traffic should be wrapped in https. The SSL port is running the default plesk page. I've written apache rewrite rules to allow me to convert anything without shoppingcart in the request to be redirected to http and anything with it to be redirected to https. I've rules like this
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^www.domainforme.com$
RewriteCond %{REQUEST_URI} !^/shoppingcart
RewriteRule ^(.*)$ http://www.domainforme.com/$1 [R,L]
I've placed these statemesnts in /etc/httpd/conf.d/zz010_psa_httpd.conf and done a apachectl graceful but my rules don't take effect. Where's the best place for http to https (and vice versa) rewrite rules to be and why doesnt apachectl control the server as expected.
Thanks, CM