redirect 302 with Hikashop no SSL outside checkout

  • Posts: 719
  • Thank you received: 3
8 years 9 months ago #228830

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.30

Hi,
i enable my ssl certificate; to avoid duplicated urls now i need to redirect my pages from https to http but not on checkout.
So i enable the Hikashop no SSL outside checkout Plugin but i discovered that if i ask

https://lacasettabio.it/negozio-online
i have a 301 Moved Permanently redirect and this is ok for me but if i ask
https://www.lacasettabio.it/negozio-online
i have a 303 See Other redirect
How can i do to have a server response 301 Moved Permanently ?
Thanks a lot
Best regards


my site with Hikashop
www.lacasettabio.it
Last edit: 8 years 9 months ago by lacasetta.

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
8 years 9 months ago #228831

Hi,

HikaShop does the same type of redirect regardless of the URL.

You can try to force it.
Change the line:
$app->redirect(str_replace('https://','http://',hikashop_currentURL()));
to:
$app->redirect(str_replace('https://','http://',hikashop_currentURL()),301);
in the file plugins/system/nossloutsidecheckout/nossloutsidecheckout.php and that will force it to 301

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

  • Posts: 719
  • Thank you received: 3
8 years 9 months ago #228961

Hi,
yes, perfect!
Thanks so much!
Best regards


my site with Hikashop
www.lacasettabio.it

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

Time to create page: 0.061 seconds
Powered by Kunena Forum