redirect 302 with Hikashop no SSL outside checkout
10 years 8 months ago - 10 years 8 months ago #228830
by lacasetta
my site with Hikashop
www.lacasettabio.it
redirect 302 with Hikashop no SSL outside checkout was created 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
i have a 301 Moved Permanently redirect and this is ok for me but if i ask
i have a 303 See Other redirect
How can i do to have a server response 301 Moved Permanently ?
Thanks a lot
Best regards
-- 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
Code:
https://www.lacasettabio.it/negozio-online
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.
10 years 8 months ago #228831
by nicolas
Replied by nicolas on topic redirect 302 with Hikashop no SSL outside checkout
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
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.
10 years 8 months ago #228961
by lacasetta
my site with Hikashop
www.lacasettabio.it
Replied by lacasetta on topic redirect 302 with Hikashop no SSL outside checkout
Hi,
yes, perfect!
Thanks so much!
Best regards
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