Log in

View Full Version : google adsense spidering question


indie
10-21-2004, 04:22 PM
Google only gives me relavent ads if the file extension shows in the browser.
It is not giving me relavent ads for www.exampledomain.com,
only for www.exampledomain.com/index.php, etc....

Any suggestions on getting google to read the domain name with nothing after the trailing slash?

Thanks!

SpelChek?
10-23-2004, 02:09 PM
Google only gives me relavent ads if the file extension shows in the browser.
It is not giving me relavent ads for www.exampledomain.com (http://www.exampledomain.com/),
only for www.exampledomain.com/index.php (http://www.exampledomain.com/index.php), etc....

Any suggestions on getting google to read the domain name with nothing after the trailing slash?

Thanks!You could force www.exampledomain.com (http://www.exampledomain.com/) to go to www.exampledomain.com/index.php (http://www.exampledomain.com/index.php) with something like:

if($REQUEST_URI)=='/'){header("Location: http://www.exampledomain.com/index.php"); exit();}

at the very beginning of index.php (You may need to use $HTTP_ENV_VARS[REQUEST_URI] instead of $REQUEST_URI)