• WEBSITECM IS NOW
    Smack Digital Inc.

How To Force Https On Your X-Cart Admin And X-Cart Provider Sections

Posted by and last updated May 17, 2014 06:48 PM

Further protect your X-Cart admin and provider sections by forcing the use of HTTPS.


Accessing your X-Cart admin section using https is always a good idea so the data you transact during the X-Cart session is encrypted. The following code will force your X-Cart admins/providers to login using https:// by redirecting them when http:// is used.

Add this code to the .htaccess of your admin section (adjust your url):

# WCM - Force https on the admin section
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://www.example.com/admin/$1 [R=301,L]
# / WCM - Force https on the admin section

Add this code to the .htaccess of your provider section (adjust your url):

# WCM - Force https on the admin section
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://www.example.com/provider/$1 [R=301,L]
# / WCM - Force https on the admin section

About the Author

Jonathan Peters Jonathan's founder of Smack Digital, a digital strategy agency that creates and executes online business success for executives who are highly motivated to quickly increase their market share. With more than two decades of experience on the web for clients ranging from non-profits to billion dollar enterprises, Jonathan's an expert in web development, eCommerce, software programming, search engine optimization and social media marketing.

Browse By Category

RSS Feeds

Don't miss out! Subscribe to our RSS Feeds to receive instant notification when new entries are added.

RSS Feed for All Categories
RSS Feed for X-Cart How-Tos
We choose our clients selectively.
Let's talk success. Apply to work with us.
Apply toWork With Us
Apply toWork With Us