homepage Welcome to WebmasterWorld Guest from 54.197.65.82
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Marketing and Biz Dev / Deprecated - Search Engine Submission
Forum Library, Charter, Moderator: open

Deprecated - Search Engine Submission Forum

    
PHP and Search Engines
murphyca

10+ Year Member



 
Msg#: 191 posted 12:39 pm on May 4, 2001 (gmt 0)

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

Thanks

 

double0seven

10+ Year Member



 
Msg#: 191 posted 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_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.

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 191 posted 7:11 am on May 5, 2001 (gmt 0)

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.

murphyca

10+ Year Member



 
Msg#: 191 posted 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 :-)

Catherine

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Marketing and Biz Dev / Deprecated - Search Engine Submission
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved