I recently came across a site that used directories as variables and was wondering if anyone knew a way (or if it was even possible) to accomplish this with php. Essentially you'd have something like http://www.yourdomain.com. In the root directory you'd have an index.php. Whenever you sent someone to a directory like http://www.yourdomain.com/44569 it would send them to http://www.yourdomain.com/index.php?node=44569 however they'd only see the previous URL. Does anyone know a way to accomplish this? If possible I'd like to use sub-nodes at well like http://www.yourdomain.com/44569/4928 to http://www.yourdomain.com/index.php?node=44569&node2=4928.
your talking about mod_rewrite
There are heaps of tutorials on this. Sitepoint.com has one, devshed.com has one.
However you must install it.