404 /homepage/search engines

Solved
Highlighted
Tourist
3 1 0

When ever I search my store through,Yahoo and bing and click on the site, the store pops up as a 404 page in my store but this dosen't happen when I search through Google. How can I fix this issue.

0 Likes
Highlighted
Tourist
3 1 0

This is an accepted solution.

resolved

placed under head in theme liquid

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

0 Likes