Page 1 of 2 12 LastLast
Results 1 to 10 of 12
Like Tree1Likes

Thread: Homepage Vs /index.php

  1. Default Homepage Vs /index.php

    Hello, sorry about this. A very basic question and I can't get my head around it.

    I have a website with the following urls:

    mysite.com

    mysite.com/index.php

    The content is exactly the same, what is the difference? Are they two separate pages? When carrying out SEO which one should I point to?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2009
    Location
    AMRAY.COM - FREE 10 years old Web Directory
    Posts
    302

    Default

    If root of your site doesn't have index.html in it then index.php is taking over and displays you home page.

    Algo reads both .html and .php as the same in this case thus as far as SEO is concerned you don't need to use /index.php to point to your home page.



    fastreplies

  3. #3

    Default

    I'd stick with one version, either just domain-name or domain-name/index.php, and add <link rel="canonical" href=" ... "> in the <head> ... </head>, so that the page is canonicalized. Otherwise, search engines sometimes look for both versions of the page (especially if there are links to both versions).

  4. #4
    Join Date
    Aug 2009
    Location
    AMRAY.COM - FREE 10 years old Web Directory
    Posts
    302

    Default

    Quote Originally Posted by wasaweb View Post
    Otherwise, search engines sometimes look for both versions of the page (especially if there are links to both versions).
    Use your logic.

    There is no 2 versions if there is no index.html present.
    In this case adding /index.php is like adding another Doctor to Dr. Goodman/Doctor.

    Does it make any sense to you?



    fastreplies

  5. #5

    Default

    Version was not a well-chosen word, but both domain-name and domain-name/index.html used to turn up on my Google WMT / Yahoo Site Explorer as separate URIs, each with incoming links, before canonicalization. Let's put it this way: even if makes no difference practically, surely there is no harm in making one URI canonical, just to be on the safe side.

  6. #6
    Join Date
    Aug 2009
    Location
    AMRAY.COM - FREE 10 years old Web Directory
    Posts
    302

    Default

    Quote Originally Posted by wasaweb View Post
    even if makes no difference practically, surely there is no harm in making one URI canonical, just to be on the safe side.
    Granted, you can do that but the question is if that somehow might harm SERP
    and from my own experiences it doesn't. Better yet Algo grabs both versions of
    Code and places in SERP sometimes 4 - 6 pages apart. What's wrong with that?



    fastreplies

  7. #7

    Default

    Would it not be better to have one result higher up in the SERPs by combining incoming links to two URIs into one, rather than having two results lower down?

  8. #8
    Join Date
    Aug 2009
    Location
    AMRAY.COM - FREE 10 years old Web Directory
    Posts
    302

    Default

    Quote Originally Posted by wasaweb View Post
    Would it not be better to have one result higher up in the SERPs by combining incoming links to two URIs into one, rather than having two results lower down?
    Nonsense and I have fact to prove it.
    Google for: coolest web directories and look for www.qoolest.com on page #1

    Now, you are looking at index.php page.
    Any questions?



    fastreplies
    ascotech likes this.

  9. #9
    Join Date
    Oct 2011
    Location
    Canada
    Posts
    28

    Default

    it looks like fastreplies won this round.

    good job fastrepleis.

  10. #10

    Default

    For canonicalization, the file extension, such as php or html, doesn't matter.

    It is merely a question of pointing out to search engines which of the multiple URIs pointing to the same file ought to be seen as canonical. Let's say there is a page called index.extension, which is what someone sees when he or she types in domain-name or domain-name/index.extension. As mentioned earlier, search engines sometimes treat domain-name and domain-name/index.extension as two separate URIs (despite the fact that they point to the same file), as evidenced in Google WMT and Yahoo! Site Explorer backlinks data.

    By, for example, adding <link rel="canonical" href="domain-name"> in index.extension file, which makes domain-name the canonical URI, then that combines incoming links to both domain-name and domain-name/index.extension for domain-name, and it also reduces the possibility of duplicate results appearing in SERPs.

    Arguably, canonicalization is much more important for sites that use session IDs or parameters on their pages heavily, but I'd maintain that there's no harm in doing it for the home page.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110