Results 1 to 10 of 10
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    1,403
    What would the spider visit and index: the php oder the html file?

    carneol

  2. #2
    Full Member
    Join Date
    January 18th, 2005
    Location
    Tamborine Mountain Australia
    Posts
    248
    I'm not sure I quite understand the question but if you have an index.html file, that is the one that will appear when you look up your website as the home page. If you don't have one then it will bring up the index.php page and that will be the one that's spidered.

    Hope that helps.
    [left][font=Arial]"If you come to a fork in the road, take it" - Yogi Berra [/font][/left]

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    United Kingdom
    Posts
    1,797
    Search engines will spider whatever links they find. If the link is www.yoursite.com and your default (ie: home) page is index.php they'll spider that. If it's index.html, that's what will get spidered.

    However, there are issues with using homepages that are not index.htm or index.html which until last week I thought had been solved. Google has, in the past, had trouble reconciling www.yourdomain.com with www.yourdomain.com/index.php or www.yourdomain.com/index.asp etc. This has meant that the internal PR and anchor text value for non .html homepages has been reduced. It did look like they'd figured this out, but I came across a couple of site last week where www.yourdomain.com had PR6 and www.yourdomain.com/index.php had PR4.

    My advice is this: if using a non .htm/html homepage, link all the internal pages back to the homepage using the full URL (ie: http://www.yourdomain.com )

  4. #4
    Full Member ahmar's Avatar
    Join Date
    January 18th, 2005
    Posts
    481
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by markymark:
    My advice is this: if using a non .htm/html homepage, link all the internal pages back to the homepage using the full URL (ie: http://www.yourdomain.com ) <HR></BLOCKQUOTE>

    If I understand correctly, you are suggesting that from my internal pages I link to my homepage through www.mydomain.com rather than homepage.asp? Is it correct?
    <DT>[size=1][color=navy]"The best measure of a man's honesty isn't his income tax return.[/color][/size]<DT>[size=1][color=navy]It's the zero adjust on his bathroom scale." Arthur C. Clark[/color][/size]</DT>

  5. #5
    ABW Ambassador Greg Rice's Avatar
    Join Date
    January 18th, 2005
    Location
    Ohio
    Posts
    4,889
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by markymark:
    Search engines will spider whatever links they find. If the link is http://www.yoursite.com and your default (ie: home) page is index.php they'll spider that. If it's index.html, that's what will get spidered.

    However, there are issues with using homepages that are not index.htm or index.html which until last week I thought had been solved. Google has, in the past, had trouble reconciling http://www.yourdomain.com with http://www.yourdomain.com/index.php or http://www.yourdomain.com/index.asp etc. This has meant that the internal PR and anchor text value for non .html homepages has been reduced. It did look like they'd figured this out, but I came across a couple of site last week where http://www.yourdomain.com had PR6 and http://www.yourdomain.com/index.php had PR4.

    My advice is this: if using a non .htm/html homepage, link all the internal pages back to the homepage using the full URL (ie: http://www.yourdomain.com ) <HR></BLOCKQUOTE>

    That's interesting, I never noticed that. My homepages are index.php so I can have some dynamic content in them. But, I also have mod_rewrite show it as index.html. Now, my largest site has a PR of 4 if you just enter the domain in the address bar and a PR of 0 if you add the index.php in the address bar.

    Is this because my inbound links are all just the domain name and not with index.php? The PR didn't change any when I went from .html to .php.
    Greg Rice Affiliate Program Management
    www.gocmc.com info(AT)gocmc.com | 330-259-1223

    Join us! - MiNeeds.com | DiscountCandleShop/CheeseSupply | Feng Shui Plaza

  6. #6
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    United Kingdom
    Posts
    1,797
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>If I understand correctly, you are suggesting that from my internal pages I link to my homepage through www.mydomain.com rather than homepage.asp? Is it correct? <HR></BLOCKQUOTE>
    Yes, Ahmar, that's exactly what I'm suggesting.

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>..PR of 0 if you add the index.php in the address bar.

    Is this because my inbound links are all just the domain name and not with index.php? The PR didn't change any when I went from .html to .php. <HR></BLOCKQUOTE>
    If I've understood correctly, you should get a PR 0 for index.php as you've used mod_rewrite to show an .html ending. As far as spiders and visitors are concerned it IS an html page.

  7. #7
    ABW Ambassador Greg Rice's Avatar
    Join Date
    January 18th, 2005
    Location
    Ohio
    Posts
    4,889
    Ahh, ok, that makes sense. Thanks.
    Greg Rice Affiliate Program Management
    www.gocmc.com info(AT)gocmc.com | 330-259-1223

    Join us! - MiNeeds.com | DiscountCandleShop/CheeseSupply | Feng Shui Plaza

  8. #8
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    2,419
    I simply put an index.html and guess what it does........

    &lt;!--#include virtual="my_non_index_name.php" --&gt;

    Other links to the home page then just go to whateverdomain.com.

  9. #9
    Full Member
    Join Date
    January 18th, 2005
    Posts
    224
    HappyPoon,

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>I simply put an index.html and guess what it does........

    &lt;!--#include virtual="my_non_index_name.php" --&gt;

    Other links to the home page then just go to whateverdomain.com.
    <HR></BLOCKQUOTE>

    Could you translate this into plain English for us "technically-challenged" folks?

    Thanks,
    Rick K.
    "Whether you think you can, or whether you think you can't...You're right!" -Henry Ford-

  10. #10
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    What Poon is trying to say (or at least I think he is) is that with the index.html page - all he really has on it is a server side include which includes the php file.

    ie

    &lt;html&gt;

    &lt;body&gt;
    &lt;!--#include virtual="my_non_index_name.php" --&gt;
    &lt;/body&gt;

    &lt;/html&gt;

    That's all that's in the index.html file...but what it does is uses the server side includes to include the my_non_index_name.php file so that the spiders and everyone else will see

    &lt;html&gt;

    &lt;body&gt;

    &lt;all the code that is in the php file all processed&gt;

    &lt;/body&gt;

    &lt;/html&gt;

    If this still sounds foreign to you, then you will have to read some more about SSI - it's really worth your while - it makes site maintenance heaps easier.

    I've never thought of doing it that way myself Poon, thanks for the tip...

    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  11. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Can html index and php index run parallel
    By megatonloh in forum Programming / Datafeeds / Tools
    Replies: 22
    Last Post: April 13th, 2007, 06:55 PM
  2. Dont want index.html to be store
    By makenoiz in forum Cusimano.com Scripts
    Replies: 2
    Last Post: March 24th, 2006, 11:08 AM
  3. No index.html file Allposters
    By makenoiz in forum Cusimano.com Scripts
    Replies: 1
    Last Post: January 12th, 2006, 11:08 AM
  4. html 101 - index.htm or index.html?
    By Cheesehead in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 31st, 2005, 04:20 PM
  5. Index.html - please advise
    By kky2k in forum Cusimano.com Scripts
    Replies: 4
    Last Post: November 12th, 2003, 02:36 PM

Posting Permissions

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