Use an htaccess file (if you are unfamiliar with htaccess check for a tutorial on google)
add the following lines in it
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)(.*)$ /index.php?page=$1&request=$2
WIth this rule lets assume you have the domain.com and a user requests the following url
http://www.domain.com/news/December/politics/Titlearticle1
The above rule will break this url request and assign
$_GET['page'] = 'news';
and
$_GET['request'] = '/December/politics/Titlearticle1';
Now in you php script
you could
1) validate the page request
2) explode $_GET['request'] to further validate your request
$request_parts = explode('/',$_GET['request']);
3) validate everything! this is very important or your site might be vulnerable.
like so:
if($_GET['page'] == 'news')
}
include 'news.php';
{
else if ($_GET['page'] == 'home')
{
include 'home.php';
}
else
{
include 'error.php';
}
This is some pretty basic concept but you can expand it according to your needs...