[Skip to main content](#vessel-content)

#   Use SSL with HikaShop on mutualised server

##

- **[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")**
- [![fredjouan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8665-fredjouan "View fredjouan's Profile") Topic Author
- [ Offline](/forum/user/8665-fredjouan)

Less More

- Posts: 55
- Thank you received: 7
-
-

14 years 2 months ago [\#61262](#61262) by [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")  *[Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61262 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")* was created by *[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")*

Hi,
I've found this script to add in components\com_hikashop\views\checkout/view.html.php file. Code:

if(strtolower($_SERVER['HTTPS']) != "on"){ $app =&amp; JFactory::getApplication(); $requestUri = $_SERVER['PHP_SELF']; if (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; $app-&gt;redirect('https://ssl.phpnet.org/my_account/loreedubois.org/'.$requestUri); }

But when it runs checkout, the message error 404 appear.
You can see it [ there](http://www.loreedubois.org/)
Thank you for help
Fred

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

14 years 2 months ago [\#61267](#61267) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61267 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")*

You should try to change:
$app-&gt;redirect('[ ssl.phpnet.org/my\_account/loreedubois.org/'.$requestUri](https://ssl.phpnet.org/my_account/loreedubois.org/'.$requestUri));

to:
$app-&gt;redirect('[ ssl.phpnet.org/my\_account/loreedubois.or...rim('/',$requestUri)](https://ssl.phpnet.org/my_account/loreedubois.org/'.ltrim('/',$requestUri)));

Also, your user session is not transferred to the shared ssl website. you should try to change the session handler on the joomla configuration screen.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")**
- [![fredjouan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8665-fredjouan "View fredjouan's Profile") Topic Author
- [ Offline](/forum/user/8665-fredjouan)

Less More

- Posts: 55
- Thank you received: 7
-
-

14 years 2 months ago -  14 years 2 months ago [\#61271](#61271) by [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")  Replied by *[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")* on topic *[Re: Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61271 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")*

Bonjour Nicolas et merci pour ton aide,
La modification, lorsque l'on clique sur "Terminer ma commande", ne renvoie plus vers une erreur 404, mais vers la page d'accueil (en SSL), ce qui fait que l'on est obligé de recliquer sur le bouton "Terminer ma commande" pour arriver sur le formulaire.
Par ailleurs, je n'ai pas compris le sens de la phrase : you should try to change the session handler on the joomla configuration screen. S'il s'agit de modifier le temps de la session, c'est fait.

Last edit: 14 years 2 months ago by [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

14 years 2 months ago [\#61346](#61346) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61346 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")*

Pas le temps mais le "gestionnaire de session". L'option du dessus.

Le fait que vous etes redirigé vers la page d'accueil vient justement de ca.
Lorsque vous arrivez sur le serveur SSL, la session utilisateur PHP est une nouvelle session. Donc le panier est perdu.
En changeant le gestionnaire de session, il sera peut être possible d'éviter le problème.

The following user(s) said Thank You: [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")**
- [![fredjouan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8665-fredjouan "View fredjouan's Profile") Topic Author
- [ Offline](/forum/user/8665-fredjouan)

Less More

- Posts: 55
- Thank you received: 7
-
-

14 years 2 months ago [\#61361](#61361) by [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")  Replied by *[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")* on topic *[Re: Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61361 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")*

Malheureusement on ne peut pas changer grand-chose dans le gestionnaire de session (joomla 2.56). Les options proposées sont :
Durée : 15 minutes (conseillé)
Méthode : bases de données (l'autre option étant : Aucun)
Ce problème est ennuyeux, j'ai étudié le gestionnaire de session sous joomla sans résultat. Une recherche dans Google m'a emmené sur des forums techniques qui n'avaient rien à voir avec le sujet qui me préoccupe. Cela dé-crédibilise la boutique.
J'ai bien essayé une méthode alternative, avec un fichier htaccess qui bascule tout le site en SSL : Code:

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://ssl.phpnet.org/mon_compte/loreedubois.org/

Un autre problème se pose alors : impossible d'accéder à l'administration du site (il doit manquer quelques lignes…).
Quelqu'un a-t-il déjà rencontré ce problème ?
Fred

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")**
- [![fredjouan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8665-fredjouan "View fredjouan's Profile") Topic Author
- [ Offline](/forum/user/8665-fredjouan)

Less More

- Posts: 55
- Thank you received: 7
-
-

14 years 2 months ago [\#61372](#61372) by [fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")  Replied by *[fredjouan](/forum/user/8665-fredjouan "View fredjouan's Profile")* on topic *[Re: Use SSL with HikaShop on mutualised server](/forum/4-how-to/61262-use-ssl-with-hikashop-on-mutualised-server#61372 "Hi, I've found this script to add in components&#92;com&#95;hikashop&#92;views&#92;checkout/view.html.php file.  But when it runs checkout, the message error 404 appear. You can see it Thank you for help Fred")*

Problème résolu en modifiant l'adresse d'accès au dossier administration.
Merci de votre aide.
Fred

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjYyLXVzZS1zc2wtd2l0aC1oaWthc2hvcC1vbi1tdXR1YWxpc2VkLXNlcnZlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.114 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
