SSL redirect for checkout

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65383

Hi, I am trying to redirect checkout to SSL without much luck. I have been searching the forum & net and comeup with the below but this does not seem to work?

<?php

if(strtolower($_SERVER) != "on"){
$app =& JFactory::getApplication();
$requestUri = $_SERVER;
if (!empty($_SERVER)) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER;
$app->redirect(' XXXXXXXX.secure-secure.co.uk/mohairbearm....co.uk/'.$requestUri );
}

/**
* @package HikaShop for Joomla!
* @version 1.6.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #65388

Hi there,

The last Hikashop version include a shared SSL option in the main configuration, you should take a look at it ;).
System>Configuration>Checkout option "Force SSL on checkout".

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65389

Tried it and gives error;

Forbidden

You don't have permission to access /index.php/component/hikashop/checkout on this server.

also tried with the code in shared SSL as this is a shared SSL.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #65390

What is the address you set for this option?

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65391

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65392

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65393

sorry this has got the https:// bit before that

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #65407

Does this address works with your website and without anything else?
Could you give it to me? If it doesn't work like this then it's probably the address which is wrong and the origin of the issue.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65409

Hi this is what I got from my host

Thanks for contacting us. This is the correct URL but it looks like the Joomla rewrite files (htaccess) and other configuration are interfering with this. I would advise checking on the Joomla forums for work arounds because by default Joomla does not work under the shared SSL.

the address does work as I have also checked it.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
12 years 2 months ago #65413

We know that shared SSL works with some hosts and Joomla's users but maybe your host has conflict with it.
You should look forward about issues between this host and joomla because I can't help you anymore.

Last edit: 12 years 2 months ago by Eliot.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65416

There must be some other way of using the php files to configure this? plus as a Hikashop Business user into my second year I don't think that's a very good response.

when's Nik on as I am sure he will know the answer?

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 2 months ago #65424

There is nothing else to configure in HikaShop. Once you enter the SSL URL in the configuration, HikaShop will redirect the checkout from your non SSL version to your SSL version.
If you get an error after the redirection, it probably means that the SSL website is not working.
That's why eliot asked you the SSL URL so that he could make sure that it's working.
I don't see any reason which would require a change in HikaShop code.
Could you please give the SSL URL you're using ?

Sorry for the answer of eliot, it's not want he wanted to say. He still has to improve his english ;)

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65428

Hi sorry do not know if this link just applies to me or could anyone use it? thats why I hid the 110

web110.secure-secure.co.uk/mohairbearmakingsupplies.co.uk/

thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 2 months ago #65440

You don't need to hide it.

That link is not displaying anything. I'm getting the error:
Not Found
The requested URL /mohairbearmakingsupplies.co.uk/ was not found on this server.

Normally, before you activate the SSL redirection on HikaShop, that URL has to display your website.
Since that is not the case, it's normal that it doesn't work.

Having that URL display your website is something which should be setup by your hosting company normally. As I feared, it seems that your hosting company does not configure the shared SSL URL so that it automatically displays your website.

Unfortunately, we can't do anything on that and as eliot said, you'll need to see that with your hosting company.
Once you have your website displaying when you go to web110.secure-secure.co.uk/mohairbearmakingsupplies.co.uk/ then you can simply enter that URL in the shared SSL option of HikaShop and it should work.

Please Log in or Create an account to join the conversation.

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
12 years 2 months ago #65442

that makes sense thanks very much.

Please Log in or Create an account to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum