I am after a way of using the directories in the URL as PHP variables. Similar to WordPress (if not all blogging platforms) I want a way to, say, pass domain.com/directory into a php file.
The reason for this is so that when I create my own blog things, the URLs will be SEO friendly.
Forexample, instead of
domain.com/?blog=1&foo=1&bar=1&foobar=5
I want
domain.com/1/1/1/5 or something
where I can then use the explode function to get variables.
For that functionality in php, you need
mod_rewriteor the equivalent in your webserver of choice, and to rewrite the url path into a get param instead.Google “clean urls drupal”, for an example of it in the wild.