Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

PHP and Search Engines



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

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



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

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_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;

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)

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 :-)



Featured Threads

Hot Threads This Week

Hot Threads This Month