Welcome to WebmasterWorld Guest from 54.146.174.220

Forum Moderators: open

PHP and Search Engines

   
12:39 pm on May 4, 2001 (gmt 0)

10+ Year Member



Does anyone know if php pages are indexed by search engines?

Thanks

3:05 pm on May 4, 2001 (gmt 0)

10+ Year Member



I understand that it is diffcult for engines to spider links with ? marks in the url. I found this piece of code awhile back and have known some folks to have some success with it.

//This only works with apache module.
$HTTP_TEMP_PATH_VARS = explode("/",$PATH_INFO);

array_shift($HTTP_TEMP_PATH_VARS);
reset($HTTP_TEMP_PATH_VARS);

$HTTP_PATH_VARS = array();

while( list($index,$key) = each($HTTP_TEMP_PATH_VARS) ) {
list($index,$val) = each($HTTP_TEMP_PATH_VARS);
$val = urldecode($val);
$HTTP_PATH_VARS[$key] = $val;
$$key = $val;
}

?>
Example
Instead of 'http://www.server.com/page.php?id=14&this=that'
you may use 'http://www.server.com/page.php/id/14/this/that'

and still have access to $id and $this.

7:11 am on May 5, 2001 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Php pages take a pretty good beating across the board in se's. There are random spots of success, but for the most part, se's don't care for them. Risky.
1:06 pm on May 5, 2001 (gmt 0)

10+ Year Member



Thank you for your replies. DoubleO7, I am very (very) new to php. Where would I put that code that you suggested? In the .htaccess file or in my php pages?

Thanks again :-)

Catherine

 

Featured Threads

Hot Threads This Week

Hot Threads This Month