Why Does www.domain.com/index.php show up???

3 replies
A client of mine has a website. When the domain name is typed in the address bar or you click to the site, it always displays
www.domain.com/index.php

When I check backlinks, yahoo only see's them linking to
www.domain.com/index.php (and not just .com)
even though I created the links to only the .com.

I did not create the website, so I don't know why this is. I've purcahsed websites where the index file is index.php, but the URL always resolves to the .com (not .com/index.php)

Did the website designer make some mistake? Is there something I can do to get the links to go to the .com and not the index.php?

Thanks for the replies!
#index #php #show #web design #wwwdomaincom or indexphp
  • Profile picture of the author Havenhood
    It sounds like this site has index.php pointing to the main TLD. Something like: home. Otherwise, Yahoo found that file as the main index file and decided to link it. Don't know.
    Signature

    --= -Spazzle- =--

    {{ DiscussionBoard.errors[3069993].message }}
  • Profile picture of the author leiden
    You can't do much about how people link to your site, some will link to yoursite.com, others will link to yoursite.com/index.php, etc... What you can do is you can redirect index.php to yoursite.com with 301, then Google will count all the links towards yoursite.com.

    Put the following in your .htaccess file:

    Code:
    Options +FollowSymLinks
    RewriteCond %{THE_REQUEST} ^.*/index.php
    RewriteRule ^(.*)index.php$ http://www.yoursite.com/$1 [R=301,L]
    {{ DiscussionBoard.errors[3072381].message }}

Trending Topics