How to set a 301 Redirect from store's homepage to internal page ?

How to set a 301 Redirect from store's homepage to internal page ?

a01a01a01a01
Shopify Partner
4 0 1

Hi there,

I know that seems a bit strange, but wee need to redirect the store's homepage to an internal page, and obviously (to make things easier 😅) we need it to be a server-side 301 redirect.

I don't have a direct access myself to the store's dashboard to verify, so I'm asking you, do the redirection built-in tool allows to add the homepage as an URL to redirect ? In someone's screenshot I've seen an error message "Path cannot be empty" (obviously if this is a homepage, path is empty).

Can someone help me understand if we can manage something good and what ?
Thanks 

Reply 1 (1)

tim
Shopify Partner
3879 382 1418

Another problem is that 301 redirection rule will only be checked only if the page at this address can not be rendered (does not exist), which is not the case for homepage.

 

So, yes, only customer-side redirects. Not ideal, but would not be a significant slow-down (from the human visitor perspective, at least).

 

But what prevents you from rendering same content on the homepage? And if you need the url updated, can add some JS code to history.pushState() (or replaceState) to update it, similar to what happens when you select new variant on product page.

 

 

 

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com