View Single Post
  #2 (permalink)  
Old Dec 18th, 2006, 11:25
Ryan Fait's Avatar
Ryan Fait Ryan Fait is offline
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Articles, PHP and search engines

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); 
Reply With Quote