website.com vs website.com/index

5 replies
  • WEB DESIGN
  • |
I rank for a few KW in Google but when my site shows up it has website.com/index.html

does that matter and if so how do i take care of that?

Also, i can type in the browswer mywebsite.com OR mywebsite.com/index and the same page shows up.

not really show how that happened?
#websitecom #websitecom or index
  • Profile picture of the author Jason Z
    When you create any website you have an index file in the folder that the browser points to first. So if your domain is mydomain.com, you have to have an index file, whether it is index.html or index.php or whatever. If you have a folder within your web hosting called something like documents for example, and you send people to mydomain.com/documents, there will be an index file in that folder too.

    As to why your site is ranking with index.html, one possibility is that you may have backlinks to your site that include the index.html and that's why you're ranking for it.
    Signature
    Co-Founder of the Local Profit Model Training Program for Offline Consultants

    Jason Zimmerman is an offline marketing and consulting professional. He has been developing web sites and digital marketing plans for local businesses since 2000.
    {{ DiscussionBoard.errors[5360420].message }}
  • Profile picture of the author andrewsymonds
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[5362000].message }}
    • Profile picture of the author blogfreakz
      Originally Posted by andrewsymonds View Post

      i think you should use 301 permanently redirect. Redirect mywebsite.com/index to mywebsite.com this will help you.
      yes 301 redirect will solve your problem you can do this by editing your .htaccess...
      {{ DiscussionBoard.errors[5363918].message }}
      • Profile picture of the author jawanda
        Originally Posted by blogfreakz View Post

        yes 301 redirect will solve your problem you can do this by editing your .htaccess...
        You don't need to use 301. Google knows that yoursite.com/index.html is the same as yoursite.com. In fact, a 301 redirect would create an infinite loop I believe.

        Just to re-state what has already been said in slightly different terms ..

        index.html (or index.htm or index.php) is the default page that your web server looks for and tries to deliver when someone accesses any folder on your website.

        If that file does not exist, the server creates a virtual index (the list of files in the directory) or in some cases (depending on server configuration) spits out an error message saying that no index exists and therefore the site cannot be displayed.

        So when you create a new site from scratch, the HOME page is for the most part always going to be called index.html (or .something)!

        In other words .. in your case index.html IS your homepage, it is the page you have been working on whether you know it or not and you don't need to change anything!

        -Phil
        {{ DiscussionBoard.errors[5391687].message }}
  • Profile picture of the author puedall
    Hi,
    Everyone said it, so I will repeat it,
    Do not change anything.
    Index.html is the name of everyone's default web page on their website.
    Hope i managed to explain this really simple.
    {{ DiscussionBoard.errors[5617227].message }}
  • Profile picture of the author RichKent
    If the same page of your website is indexed at multiple urls then there's the danger of a duplicate content penalty. Use a 301 redirect to fix the issue - something like:

    RewriteEngine on
    # Index Rewrite
    RewriteRule ^index\.(htm|html|php) http://www.yoursite.com/ [R=301,L]
    RewriteRule ^(.*)/index\.(htm|html|php) http://www.yoursite.com/$1/ [R=301,L]

    Do a Google search for 'duplicate content index.html' for a more thorough explanation.
    {{ DiscussionBoard.errors[5617490].message }}

Trending Topics