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.
2 Comments
Just reading this what would happen if i requested “images/hello.jpg”? wouldnt that be passed to index.php aswell?
Only if images/hello.jpg doesn’t exist. The .htaccess only rewrites the URLs for files that don’t exist.
One Trackback
[...] - Prettifying URLs saved by simonehuggins2008-09-17 - Domain URL’s For Sale (No website, just the domain name) saved [...]