[nycphp-talk] Google/Adsense -> PHP
FB`
fb at intldef.org
Fri Dec 19 16:01:47 EST 2003
That will be returned as a 302, and word is that G likes 301s better than
302s.
So you might benefit from adding
header("HTTP/1.1 301 Moved Permanently");
before the Location header.
FB`
----- Original Message -----
From: "jon baer" <jonbaer at jonbaer.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Friday, December 19, 2003 11:54 AM
Subject: Re: [nycphp-talk] Google/Adsense -> PHP
> Does/would this work w/ robots effectively?
>
> User-Agent: googlebot
> Disallow:
>
> User-Agent: Mediapartners-Google*
> Disallow:
>
> @ top of the page:
>
> if (preg_match("/Google/i", $_SERVER['HTTP_USER_AGENT'])) {
> header("Location: google.php");
> exit();
> }
>
> - jon
>
> ----- Original Message -----
> From: "Jeff Siegel" <jsiegel1 at optonline.net>
> To: "NYPHP Talk" <talk at lists.nyphp.org>
> Sent: Friday, December 19, 2003 5:23 AM
> Subject: Re: [nycphp-talk] Google/Adsense -> PHP
>
>
> > I've always gone here (http://www.robotstxt.org/wc/robots.html) to deal
> > with robots questions.
> >
> > Jeff Siegel
> >
> > jon baer wrote:
> >
> > > greetings ...
> > >
> > > sounds like i missed a great party :-\
> > >
> > > i have a quick question ... below is something i currently have on 2
> > > websites which now want to integrate Google AdSense and im trying to
> figure
> > > it out ... first both sites use Session URL rewrite ...
> > >
> > > -snip-
> > > Your website is using session ID's in the URL.
> > > If your web pages use session ID's, you may not receive targeted ads
on
> > > those pages. Since this session ID - and therefore the URL - changes
> every
> > > time a different user views a page, the URL will not be in the index
and
> > > will be queued to be crawled. Once the URL is crawled, however, the
> session
> > > will most likely have expired. This means that pages seen by the users
> are
> > > never in the index. You will need to remove the session ID's in order
to
> > > display targeted ads.
> > > -snip-
> > >
> > > However their crawler lists a User-Agent as:
> > > Mediapartners-Google*
> > >
> > > So does anyone think I could create a single dynamic page/catalog
> (acting
> > > like static) for that user agent and then redirecting all other
requests
> to
> > > the main site? (http://www.website.com/google.php) ...
> > >
> > > Offhand (I forgot the robots.txt syntax to direct all requests to that
> > > location, anyone know?)
> > >
> > > Will research more but wanted to see how others were handling the same
> > > situation ...
> > >
> > > - jon
> > >
> > > pgp key: http://www.jonbaer.net/jonbaer.asc
> > > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47
> > >
> > > _______________________________________________
> > > talk mailing list
> > > talk at lists.nyphp.org
> > > http://lists.nyphp.org/mailman/listinfo/talk
> > >
> >
> > --
> > Found on the Simpson's Website:
> > "Ooooooh, they have the internet on computers now!"
> >
> > _______________________________________________
> > talk mailing list
> > talk at lists.nyphp.org
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list