Page is a not externally linkable
- Search Engines
-- Sitemaps, Meta Data, and robots.txt
---- Google WAP Proxy and robots.txt


carfac - 4:52 pm on Sep 7, 2002 (gmt 0)


Hi:

Probably not the place for perl questions, so sorry if this is inappropriate...

I wrote this:

$visitor_ua = $ENV{'HTTP_USER_AGENT'};
if ($visitor_ua =~ 'WAP') {

print "Content-type: text/html\n\n";
print "<html>\n";
print "<head>\n";
print "<title>Forward On</title>\n"; print "</head>\n";
print "<body>\n";
print "<p><b>Please <A HREF="http://www.mydomain.com/">Click Here</A> to continue!</b></p>\n";
print "</body>\n";
print "</html>\n";
exit;
}
else {
CODE
}

and inserted above the logging part of the trap... look good?

dave

[edited by: carfac at 5:56 pm (utc) on Sep. 7, 2002]


Thread source:: http://www.webmasterworld.com/robots_txt/104.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com