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.
User | RANK |
---|---|
33 | |
27 | |
18 | |
8 | |
7 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023