SitePoint Sponsor

User Tag List

Results 1 to 16 of 16
  1. #1
    SitePoint Addict
    Join Date
    Nov 2002
    Location
    Maryland
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Google doesn't index PHP files?

    I am in the process of trying to decide if I should learn PHP or ASP. I was leaning towards PHP until I saw on Google's website that they don't index PHP files. Check out this page:
    http://www.google.com/webmasters/facts.html

    Scroll to the bottom and Google lists the files they index. They don't mention PHP. Whats up with that?

  2. #2
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well its missing from the list for sure but they do index .php pages (and .html & .htm !)

  3. #3
    SitePoint Addict sojomy's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, they definitely index .php files.
    http://www.google.com/search?hl=en&i...halgamers+clan

    That finds several of our PHP pages at http://www.lethalgamers.com

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They don't index pages like index.php?id=12345&action=vdel

    That wouldn't get indexed. IOW, no variables.
    Aaron Brazell
    Technosailor



  5. #5
    SitePoint Evangelist
    Join Date
    Oct 2001
    Location
    Texas
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually If i recall google does index php sites with variables!

  6. #6
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think so, mate, but I could be wrong. This is why Chris wrote Search Engine Friendly URL's.

    Aaron
    Aaron Brazell
    Technosailor



  7. #7
    SitePoint Addict sojomy's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sketch
    I don't think so, mate, but I could be wrong. This is why Chris wrote Search Engine Friendly URL's.

    Aaron
    Well then how do you explain this
    http://www.google.com/search?hl=en&i...halgamers+clan

    Look at the second link down

    Or this
    http://www.google.com/search?hl=en&l...q=lethalgamers
    Look at the 4th link down

    Both are indexed links WITH variables, and the page still comes up as originally done

  8. #8
    No. Phil.Roberts's Avatar
    Join Date
    May 2001
    Location
    Nottingham, UK
    Posts
    1,142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Google tends to only index pages with query-strings to a very limited depth to avoid overwhelming the script with spider requests. It also tends to ignore pages that contain session id's due to the fact that the ID is different for every user.

  9. #9
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know that Google didn't index my pages when I was using the variables in URL method, but all I had to do was add a couple of mod_rewrite rule and Google indexed all the pages couple weeks later.

    The beauty of the mod_rewrite method is that none of your PHP code needs to change, 'cos as far as they know, they're still using $_GET['whatever']
    Work smarter, not harder. -Scrooge McDuck

  10. #10
    SitePoint Addict sojomy's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Robo
    I know that Google didn't index my pages when I was using the variables in URL method, but all I had to do was add a couple of mod_rewrite rule and Google indexed all the pages couple weeks later.

    The beauty of the mod_rewrite method is that none of your PHP code needs to change, 'cos as far as they know, they're still using $_GET['whatever']
    What as the mod_rewrite you used? and where do you put it? The root of the site?

  11. #11
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sketch
    I don't think so, mate, but I could be wrong. This is why Chris wrote Search Engine Friendly URL's.

    Aaron
    ... most search engines (with a few exceptions - namely Google) will not index any pages that have a question mark or other character (like an ampersand or equals sign) in the URL
    Sean --
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  12. #12
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fiction:Sites are not included in Google's index if they use ASP (or some other non-html file-type.)
    Fact:
    At Google, we are able to index most types of pages and files with very few exceptions. File types we are able to index include: pdf, asp, jsp, hdml, shtml, xml, cfm, doc, xls, ppt, rtf, wks, lwp, wri.
    It doesn't say that list is all inclusive. Trust me they do index php files

    They also index query string'ed php files.

    HOWEVER, they will sometimes self limit the number of query string files they index so it is in your best interest to use search engine friendly URLs.
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  13. #13
    SitePoint Enthusiast pixelreview's Avatar
    Join Date
    Feb 2003
    Location
    Thousand Oaks, CA
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They also index .txt files
    Digital Camera Software
    http://www.justrightclick.com
    -Eric Smith

  14. #14
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as long as you hyperlink to them.

  15. #15
    SitePoint Enthusiast pixelreview's Avatar
    Join Date
    Feb 2003
    Location
    Thousand Oaks, CA
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Archbob
    as long as you hyperlink to them.
    True, but that's kinda like saying google with only index html files if you hyperlink to them. Nothing special about .txt files, google treats them as html.
    Digital Camera Software
    http://www.justrightclick.com
    -Eric Smith

  16. #16
    jigga jigga what? slider's Avatar
    Join Date
    Oct 2002
    Location
    Utah (USA)
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your post Philip. Declaring the doc type fixed the
    problem, and now google indexes my php pages, regardless of their
    extension or lack thereof.
    (I kept the META tag, however, and it makes no difference.)
    -Pete
    http://groups.google.com/groups?hl=e...com%26rnum%3D2
    $slider = 'n00b';


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
  •