here's a short perl script i wrote/lifted to re-route.
#!/usr/bin/perl
$acc = $ENV{"HTTP_ACCEPT"};
if ($acc =~ "wml"){
print "Location: http://www.dfilm.com/index.wml\r\n\r\n";
}elsif ($acc =~ "hdml"){
print "Location: http://www.dfilm.com/index.hdml\r\n\r\n";
}else {
print "Location: http://www.dfilm.com/index_main.html\r\n\r\n";
}
#EXIT
exit;
i also did a redirect on /index.html to theabove script using
the .htaccess file.
here's the line for the .htaccess file:
Redirect /index.html http://www.dfilm.com/cgi-bin/route.cgi