Help with ranking a php blog?

20 replies
I've just finished writing my blog script in php but my issue is with getting google to view all my posts. The posts are stored in a database and displayed with the .php?page=blog&pageID=3 for example. The main issue is with the blog as I want google to rank all my posts as some of them will be tutorials etc but I don't know the best way to do this. Ideally I would like to do the same for all my pages but I can index these individually so that is not such an issue.

I know when I had a wordpress site the pages were technically .html and I'm assuming google can find these more easily. Correct me if I'm worng though, this is just speculation.

So how can I have it so google will index all my posts?

Thanks
#blog #php #ranking
  • Profile picture of the author wbdzgnr
    Do some backlinks for your site with the keywords you want. Do it often and you'll get it indexed soon. Also place links to popular sites. Like here
    {{ DiscussionBoard.errors[3381023].message }}
  • Profile picture of the author zoobie
    It takes time to get index. But if you make some spider friendly URLs, this will make a bit easier. Also you may want to generate an XML sitemap submit to Google, this also will tell Google more on how to index your site properly.
    {{ DiscussionBoard.errors[3381070].message }}
  • Profile picture of the author sammytoga
    I was under the impression that dynamic pages are a lot more difficult to get indexed, since Google doesn't see php - only the output
    {{ DiscussionBoard.errors[3381121].message }}
    • Profile picture of the author burton247
      sammytoga - this is what I was unsure about, however, google does appear to be indexing them by following my in-links as I checked this evening and some more are starting to pop up.

      I need to generate a new site map, cheers for reminding me.

      I'll remember to link to other sites too, I forget this sometimes, thanks for your help
      {{ DiscussionBoard.errors[3382488].message }}
  • Profile picture of the author carrot
    Google will index dynamic urls just fine, provided they are linked to, as you have found.

    I am intrigued as to why you decided to write your own blog platform rather than use an already stable one like WP or MT though.

    Dont get me wrong, i write custom solutions often, but if its just for blogging it seems a bit overkill
    {{ DiscussionBoard.errors[3386909].message }}
  • Profile picture of the author burton247
    Yeah, it is working alright at the moment, having the file name or a path to the file containing the title of the post would be nice and help with ranking it though.

    I decided not to go with an existing blogging platform or CMS for 2 reasons. Firstly, I want a blog as only one aspect of the site, I also want general pages and a portfolio section. I know I can do all this with existing setups but I wanted full control.

    However, the biggest reason is experience. I'm currently studying computer science at universtiy so I am doing this to further my knowledge and it will be a good addition to my portfolio.

    I agree with you that it is overkill but it will beneficial to me hope
    {{ DiscussionBoard.errors[3392724].message }}
  • Profile picture of the author carrot
    Ok, makes sense.
    If you are using php and an apache server, SEO friendly links are quite easy to pull off with .htaccess and mod_rewrite.

    Here is a good tutorial:

    Pretty URLs - a guide to URL rewriting

    Hope that helps.
    {{ DiscussionBoard.errors[3394243].message }}
    • Profile picture of the author burton247
      Link looks good. I'll have a proper read of it soon.

      Thanks a lot
      {{ DiscussionBoard.errors[3397571].message }}
  • Profile picture of the author Istvan Horvath
    Originally Posted by burton247 View Post

    I know when I had a wordpress site the pages were technically .html and I'm assuming google can find these more easily. Correct me if I'm worng though, this is just speculation.
    Yes, you are absolutely WRONG!
    It is worse than "speculation" - it is spreading incorrect information, hoax, lies etc.
    Signature

    {{ DiscussionBoard.errors[3397700].message }}
  • Profile picture of the author burton247
    @Istvan Horvath

    I thought you could specify from within wordpress to display the articles as .html files instead of .php this may have been via an SEO plugin
    {{ DiscussionBoard.errors[3398181].message }}
  • Profile picture of the author Istvan Horvath
    Half-truth is always worse than anything else... it is easier to believe it.

    1. By defult there is NO extension in WP urls - example.com/?p=111
    That's for starters!

    2. Using the Permalinks tool you can set up "pretty" permalinks (i.e. URLs) - example.com/post-title

    Notice, it still doesn't have any .html or .php extension?

    3. Some useless WP guides tell you to add .html to your nice permalinks to make them like example.com/post-title.html - but that is BS info and you should not listen to people who started to use WP last week...

    Can you show me any trustworthy resource that has the proof for using the .html extension for better SEO? (I bet you can't...)
    Signature

    {{ DiscussionBoard.errors[3398726].message }}
  • Profile picture of the author burton247
    Chill out. I came to the forum to ask for help because I wasn't sure on something. I clearly said I was not sure and correct me if I was wrong so need to act like you have.

    And as it may be evident I do not myself use wordpress, so cannot remember exactly what the setup is, again no need to get so angry.

    Can you show me any trustworthy resource that has the proof for using the .html extension for better SEO? (I bet you can't...)
    Again, I said this was speculation so guess what, you're right, I can't find a source.
    {{ DiscussionBoard.errors[3398764].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by burton247 View Post

      I clearly said I was not sure and correct me if I was wrong
      And that's exactly what I did... you just don't like it. :rolleyes:
      Signature

      {{ DiscussionBoard.errors[3398877].message }}
  • Profile picture of the author burton247
    I don't have an issue with being told I'm wrong. It's just that you seemed to be accusing my of spreading lies when I said I was not sure. If I had have said this is true then ok, I'd agree with you but I didn't.

    Again, I have no issue with being told I'm wrong I just don't think your attitude was right. If I ever correct people (not on this forum, mainly on the Linux ones) then I do so in a nice way...
    {{ DiscussionBoard.errors[3399109].message }}
    • Profile picture of the author jminkler
      Originally Posted by burton247 View Post

      I don't have an issue with being told I'm wrong. It's just that you seemed to be accusing my of spreading lies when I said I was not sure. If I had have said this is true then ok, I'd agree with you but I didn't.

      Again, I have no issue with being told I'm wrong I just don't think your attitude was right. If I ever correct people (not on this forum, mainly on the Linux ones) then I do so in a nice way...
      His attitude is TOTALLY called for. SO much bad information being passed around on this site, if you don't know then don't reply.
      {{ DiscussionBoard.errors[3399735].message }}
      • Profile picture of the author burton247
        Cheers for sitemap tip, I'll write up a script for that soon.
        {{ DiscussionBoard.errors[3399995].message }}
        • Profile picture of the author jminkler
          Originally Posted by burton247 View Post

          Cheers for sitemap tip, I'll write up a script for that soon.
          Why re-invent the wheel, never assume what you are doing is totally new to the programming world, google first.

          Let me google that for you
          {{ DiscussionBoard.errors[3400036].message }}
          • Profile picture of the author burton247
            I may use a third party to do it. But the whole point of the exercise is to gain experience, so I'll see

            Cheers again though
            {{ DiscussionBoard.errors[3407856].message }}
            • Profile picture of the author sonia2012
              Use the SEO url friendly from dynamic to static url - permalink.
              From article.php?id=##
              To article.php/##.html
              {{ DiscussionBoard.errors[3426846].message }}
  • Profile picture of the author jminkler
    First of all he said he's using his own PHP script to do the blog, not wordpress.

    The best way for you to get google to see it is a sitemap of course and entering it into your google webmaster account.

    Have PHP render the XML by going through your database and outputting the proper XML for the sitemap. This is what all the Google WP sitemap plugins do.
    {{ DiscussionBoard.errors[3399729].message }}

Trending Topics