• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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