How to remove 404 page?

How to remove 404 page?

Foolfully
Tourist
12 0 2

My site doesn't need 404 page. I just want the home page displayed instead of 404 error page. If this is not possible then can i change the characters from "404" to some other words so then it doesn't look like an error page?

Replies 7 (7)

ProtoMan44
Shopify Partner
610 54 92

@Foolfully thanks for posting here,
So redirect to another page or back page. with js.

or
create new informative template for 404 page

 

 

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!

Huptech-Web
Shopify Partner
941 188 197

Hi @Foolfully 
This is not possible to redirect every wrong URL to the home page instead you can customize the 404 page using the theme Customizer

404.png

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
Amberlady
Tourist
13 0 2

Can you give the next steps to this solution please?  Takes me to CSS and not a text editor box.  Can I just add text here?

 

PageFly-Theodor
Shopify Partner
691 86 101

Hi @Foolfully ,
This is Theodore from PageFly - Shopify Page Builder App.

Shopify allows you to handle 404 errors in two ways:

  1. Redirect: Set up a redirect to send users who land on non-existent pages to your homepage instead of showing a 404 error message.

  2. Customize 404 Page: If redirects aren't possible, edit the existing 404 error page. Change the "404" text to a friendlier message (e.g., "Oops! We can't seem to find that page") and include navigation elements to help users find what they need.


Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Foolfully
Tourist
12 0 2

I need to redirect all possible 404 pages to home so 404 can never be displayed. If you use a bad domain extension then you always go to home. Why anyone even invent 404 page when it could just be home page. Must've been a negative person to make needless errors.

ZestardTech
Shopify Partner
5770 1052 1392

Hi @Foolfully 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find sections > main-404.liquid and paste this at the bottow of the file:

 

<script>
window.location.href = "/";
</script>
Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

Huptech-Web
Shopify Partner
941 188 197

Hi @Foolfully 
Here is another approach

Add this code in theme.liquid after the <head> tag
This will check If the current template is 404 or not and if 404 it will redirect to the home page.

    {% if template contains '404' %}
      <script>
        window.location.href="/";
      </script>
    {% endif %}

 

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required