Prettifying URLs

Whenever I am writing web apps I always find myself thinking that the filenames in URLs detract from the whole experience. Is there really any need for .html, or .php to be seen by the browser so long as the server knows what it needs to do?

I am always writing the same bits of code to acheive the same goals, so I decided to make a little object-oriented library to do it for me.

Get it here fophillips.org/prettify.tar.bz2. I will do a write-up explaining it some other time.

This entry was posted in software | and tagged , Bookmark the permalink. Post a comment or leave a trackback: Trackback URL. | Edit

2 Comments

  1. Posted November 6, 2008 at 9:02 am | Permalink

    Just reading this what would happen if i requested “images/hello.jpg”? wouldnt that be passed to index.php aswell?

  2. Posted November 6, 2008 at 5:15 pm | Permalink

    Only if images/hello.jpg doesn’t exist. The .htaccess only rewrites the URLs for files that don’t exist.

One Trackback

  1. By Websites tagged "urls" on Postsaver on September 19, 2008 at 10:02 pm

    [...] - Prettifying URLs saved by simonehuggins2008-09-17 - Domain URL’s For Sale (No website, just the domain name) saved [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*