• Hi
    I seem to have two home pages one appears in google analytics statistics
    as “/”
    the other appears as “index.html” and since 11 october 2011, it comes up as a 404 error

    I can’t figure out why people are going to the index.html page in the first place. Is there anything I can do about this?

    Is there a plugin I can use if person types in a wrong url then it will always direct them to the the home page rather than give a 404 error – I know there are other sites that can do this.

    my website is http://www.klearminds.co.uk

    Many thanks for your help
    maggie

Viewing 7 replies - 1 through 7 (of 7 total)
  • Set up a 301 redirect for the index.html page to redirect to your wordpress installation.

    Thread Starter maggiemorrow

    (@maggiemorrow)

    Thanks Tim,
    Is there any way of getting rid of that index.html page altogether as it doesn’t make sense to have 2 home pages and isn’t good for my seo
    many thanks
    maggie

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If there’s no index.html file, then just do a redirect and Google will know.

    It’s not there – hence the 404 error. Ipstenu is right, just do a redirect and Google will know. A 301 redirect is permanent, so they will update accordingly.

    Thread Starter maggiemorrow

    (@maggiemorrow)

    Thanks for your help guys will do as you suggest
    I’m guessing from what your saying the index.html is the home page? – but I’m still puzzled as to why I also have a version of the home page that comes up as “/” on google analytics – instead of the home page being represented by one phrase either index or /
    any light you can shed would be most appreciated – many thanks, maggie

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    index.html is a default home page that many places assume exist.

    / and /index.php (or /index.html) all point to the same place. Your INDEX file 🙂 This is just how the web works, don’t overthink it too much.

    You will always get people looking for /<named file> just as people insist on putting in www. before most URLs even though you don’t have to. WordPress will automagically move yourdomain.com/index.php to yourdomain.com

    Put this in the top of your .htaccess:

    Redirect 301 /index.html  http://www.klearminds.co.uk

    As for redirecting ALL 404s to the main page, that’s bad internet form, and a bad experience for your users. They won’t know what happened and may try the same URL a lot of times. A 404 tells them what’s wrong.

    Thread Starter maggiemorrow

    (@maggiemorrow)

    Thanks a mil, that’s really helpful 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘home page 404 error’ is closed to new replies.