| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Force HTTPS for all pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Force HTTPS for all pages
X-cart 5 has a feature that can enable HTTPS for the store backend, checkout, sign-in and profile pages - assuming you have a valid SSL certificate. Many sites are moving to HTTPS everywhere for very good reasons. The performance hit is not so much of an issue now if you can employ HTTP/2 or SPDY.
Perhaps X-cart should consider this as a configurable option for a later release. Setting up Apache or Nginx rewrite rules can achieve this. But as an alternative, if anyone finds this useful, I created a tiny module with just one file in addition to main.php. NB. replace <modowner>, <modname> as you wish.. .../<modowner>/<modname>/Controller/AController.php <?php // vim: set ts=4 sw=4 sts=4 et: /** * Force HTTPS everywhere * */ namespace XLite\Module\<modowner>\<modname>\Controller; class AController extends \XLite\Controller\AController implements \XLite\Base\IDecorator { /** * force https * * @return boolean */ public function isSecure() { return true; } }
__________________
4.6.1 5.2.10 Andrew |
|||||||
|
#2
|
|||||||||
|
|||||||||
Re: Force HTTPS for all pages
Andrew,
Thanks for sharing this simple tip. With your permission I will post it to my X-Cart knowledge base. Would this be acceptable? -Mike
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Force HTTPS for all pages
Sure Mike, with pleasure.
Andrew
__________________
4.6.1 5.2.10 Andrew |
|||||||
|
|||
X-Cart forums © 2001-2020
|