which is indexed - html or php ?

Discussion in 'Search Engine Optimization' started by steviemac, Feb 16, 2007.

  1. #1
    Hi

    My question is this -
    I have a website which runs a php script. The website has a index.php page. Up until now this is the page which has been the entrance page when anyone finds my domain/website on search engines.

    However I have just added an index.html page now and i want to know will the search engines eventually use this as my default entrance page for the site, as opposed to the index.php page (this is what I am hoping will happen)?

    I believe this is the case, but would value the opinion of others.

    Thanks
    Stevie
     
    steviemac, Feb 16, 2007 IP
  2. indieee

    indieee Active Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Is the index.php still there? Or do people enter your site via yoursite.com/index.html?
     
    indieee, Feb 16, 2007 IP
  3. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,
    It actually depends on the host of the website. There is a setting that tells the site which file to load first. On my host I can have index.htm and index.html, and index.php. First the htm, then the html then the php gets loaded. That is how they set it up.
    Mike
     
    MWilson, Feb 16, 2007 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Why not just try visiting your site and see which page loads? :confused:
     
    mad4, Feb 16, 2007 IP
  5. Itchy

    Itchy Peon

    Messages:
    76
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    look in your .htaccess file
    change DirectoryIndex /index.php to DirectoryIndex /index.html

    and if it wasnt there add DirectoryIndex /index.html

    that shoud do it but if the index.php has already been indexed then SE will go straight to the URL what bots dont do all the time is go to the root of the domain and start from scratch if they already know about it they go straight there ;)
     
    Itchy, Feb 16, 2007 IP
  6. steviemac

    steviemac Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #6

    that is what I am saying, it currently IS the index.php page at the minute, if you visit the URL. That is because there hasnt been an index.html page until now.
    Thats what I am trying to change for the future. :)
     
    steviemac, Feb 16, 2007 IP