WordPress.org

Forums

[resolved] Index.html --> index.php (5 posts)

  1. wassermann
    Member
    Posted 2 years ago #

    Aho brethren,

    So in the google webmaster tools I'm getting an URL crawl error from our site wassermann-informatics.ch, it says googlebot couldn't crawl index.html because it doesn't exist. There's only the index.php on the server, no index.html. Now, my question is how to tackle this.

    Either I could create a index.html file and redirect it to the index.php, or option B, insert a redirect 301 into the .htaccess file. Technically both work, but is there a best practice to this problem? One that google likes most?

    Thanks a lot!

  2. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    You can tell Google to ignore it. Google does not take nonexistent links seriously.

    Review: http://wordpress.org/support/topic/450-new-google-crawl-errors-13-digits-behind-the-existing-url?replies=15#post-3200765

  3. wassermann
    Member
    Posted 2 years ago #

    Ok Thanks Krishna

  4. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    You are welcome! :)

  5. wassermann
    Member
    Posted 2 years ago #

    so for the sake of completeness I inserted this code:

    RewriteCond %{THE_REQUEST} ^.*/index.html
    RewriteRule ^(.*)index.html$ http://example.com/$1 [R=301,L]

    into the .htaccess file and it redirects fine.

Topic Closed

This topic has been closed to new replies.

About this Topic