Google and dynamic PHP content

Discussion in 'PHP' started by fergald, Jan 9, 2008.

  1. #1
    Hi,

    have a web page called http://www.learningsteps.com/courses.php where content locations of courses is take from the database. The location point to locations where i have the html files to launch courses, but i noticed that all 80 pages have 0 pagerank and are (i think) not indexed by google.

    Does anyone know how i can overcome this and make the pages more google friendly whilst using dynamic content - someone said something about mod/rewrite can deliver static page but i am unsure.

    I also tried setting up a sitemap that links to each page - but its a pain maintaining it as i am adding 5 courses every week.

    was hoping to automate the process.

    Kind Regards
    Fergal.
     
    fergald, Jan 9, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Don't use Javascript links. Google can't follow these.

    Instead of
    
    <a href="#" onclick="expand2('Html-CSS-Javascript')">
    
    HTML:
    Use
    
    <a href="original-link.html" onclick="expand2('Html-CSS-Javascript'); return false;">
    
    HTML:
    This way Google can find the pages. (And it will also work for used which have Javascript disabled)



    You can view your indexed files here:
    http://www.google.com/search?hl=en&q=site:learningsteps.com


    EDIT:

    If you don't want to change the Javascript links, then you can also add a sitemap where Google can find your pages.
     
    nico_swd, Jan 9, 2008 IP
  3. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Just to add to what nico said, if you could code a dynamic sitemap you could add it to Google's webmaster central to tell what pages had been indexed.

    Brew
     
    Brewster, Jan 9, 2008 IP
  4. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    kendo1979, Jan 9, 2008 IP
  5. Sabbir

    Sabbir Banned

    Messages:
    210
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Google do not read the Java script like images. You should avoid this.



    best wishes
    ____________________________________
    Custom Lanyards are here
     
    Sabbir, Jan 10, 2008 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    Dang, why didn't I think of that?
     
    nico_swd, Jan 10, 2008 IP