We have recently converted one of our legacy ecommerce sites to MODx. Since we keep all of our ecommerce sites PCI compliant it became prudent to place all login pages behind https in combination with the use of an SSL. I just wanted to share the Rewrite code we added to the .htaccess document in order to redirect the user to the appropriate URL.

RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} manager
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
blog comments powered by Disqus