01.05.08

This is a very early version of what will become a class for dealing with url rewriting. I spent some time looking for url handling classes and while I found one I really like, it was just too much for what I needed in this case. Keep in mind the only thing this piece of code does right now is create an array. I’ve called this array $_PATH as it seemed to make sense considering its purpose and how it’s derived.

The .htaccess file is as follows:

Options +FollowSymLinks


	RewriteEngine on
	RewriteCond %{REQUEST_FILENAME} !-s
	Rewriterule (.*) index.php

This will take any request url and forward it to index.php leaving the URI intact. You can change index.php to anything you like and it does work in subdirectories.

Read the rest of this entry »