Liquid, JavaScript, themes, sales channels
Hi,
I would like to know how to configure HTTP redirection with code 301.
Currently, the redirection type is 307, which means when I navigated http://mysite.com, I will be redirected to https//mysite.com with a code 307.
I would like to configure the redirection with code 301 which is more friendly to SEO.
In general, this can be handled at the .htaccess file, but in Shopify, that's not possible.
Anyone can help?
Thanks in advance.
In Shopify, you cannot directly modify the .htaccess file to configure HTTP redirection. However, you can achieve a 301 redirection by using Shopify's built-in URL redirects feature. Here's how you can do it:
Thanks for the help, but the idea you mentioned doesn't work in case I need to set the redirection for the homepage because Redirect from option only accepts subpages.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024