Twitter RSS Feed Flickr Photostream Facebook Fan Page

Apache mod_rewrite

Written By Tyler Ingram on Oct 29, 2006

I finally got mod_rewrite working somewhat properly here.

I had to add this code for apache to handle the rewrites:

RewriteEngine OnRewriteRule ^blog/([0-9]+)$ blah.php?id=$1 

And then just modify a few things so that my CSS, pagnating and links would work properly. 

Though you might be asking why do ths?  Well supposidly Google and other search engines can crawl and index sites alot easier if there are no odd arguements in the URL.  Though I have seen Google and others index sites fine so to me it's up for debate.

It also makes sense to people reading the URL right?  www.tingram.ca/entry.php?id=19 is not as easy to read or understand as www.tingram.ca/blog/19 right?

What else might I add? Well perhaps I'll include the title of the blog entry into the URL instead.  Who knows?!?

 

Posted in: Uncategorized

Comments are closed.

Both comments and pings are currently closed.
If you still wish to comment please feel free to use my Contact Page