use Apache2::Request; use Apache2::RequestRec; use Apache2::RequestUtil; use Apache2::URI; use Apache2::Cookie; use Data::Dumper; use HTTP::Date; use Apache2::Const -compile => qw(:common); use IO::File; use WFC::Wurfl;

In firefox I set the 'user agent' to Blackberry 8320. When I request the site I get "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

In error log, It does prints that the site was mobile. Since I am printing it in log if its mobile.

I want it to redirect to mobile.somesite.com/iphone.html. Any ideas how internal_redirects works. Or any other way to work on this?