How can I redirect my ecommerce site link to my product page?

For a little background, I have a one product Shopify store and am using the Spark theme. With this theme, you can only have ‘featured products’ on the homepage. But products you put on the homepage don’t have all the features like apps or reviews. So I’m looking for a way to completely remove my homepage, make my site link redirect to my product page, or make it so my homepage have a normal product option.

Hi @Jarch

you can use this code to redirect your home page to product page direct

  1. add this code in “layout->theme.liquid”, before
window.addEventListener('load', function() {
  window.location.href = 'http://www.example.com/products/product_page';
});

Note: change url to your product page

Best regard

Hello, I added the code before and changed the URL but the code just shows up in a white space above the header announcement bar.

You have to add in script like below


how and where do I add that ???

you have to add in Js file. which theme do you have ? send me link

Hi, in Shopify the homepage cannot be deleted. You can try redirecting home page to your collection or product page.

  1. Click on “Navigation” or “URL Redirects” (the option might vary depending on your Shopify theme).

  2. Look for an option to create a URL redirect. It may be labeled “URL Redirects,” “URL Redirect Manager,” or something similar.

  3. Create a new redirect with the source URL being / (which represents the homepage) and set the target URL to the new destination URL you want.

  4. Save your changes.

ALSO you can do the same thing with code (this is working one). Add before head in theme.liquid. ( ‘/’ represents the home page)


This doesn’t really solve the issue because it still loads up the homepage then it loads the product page. Theres gota be a way to fully direct traffic to the singe main domain but lands on product page.

Here is an example shop that achieves this.
https://www.shopbotaniqueparis.com/

did you ever find a way i cant seem to find one