• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Rewrite https to http on Godaddy dedicatd host

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
 
Back
Top