Skip to main content

redirect 302 with Hikashop no SSL outside checkout

More
10 years 8 months ago - 10 years 8 months ago #228830 by lacasetta
-- 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
Code:
https://lacasettabio.it/negozio-online
i have a 301 Moved Permanently redirect and this is ok for me but if i ask
Code:
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: 10 years 8 months ago by lacasetta.

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

More
10 years 8 months ago #228831 by nicolas
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.

More
10 years 8 months ago #228961 by lacasetta
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.459 seconds
Powered by Kunena Forum