I believe Google does not index ID's. Don't do this! There are way better ways to go about it. My favorite is using something like this:
http://domain.com/?/todays-news/
I use this code to handle complex $_GET variables. It's splits it all up by the forward slashes and corrects the position if there isn't a slash in front or at the end.
- PHP: Select all
$home = "/news/";
if(count($_GET) == 0) {
header("Location: .?".$home);
exit();
}
$location = explode("/", key($_GET));
if($location[0] == "")
array_shift($location);
if($location[count($location) - 1] == "")
array_pop($location);