Hi I got .htaccess RewriteEngine on RewriteCond ${dash2score:yes} yes RewriteCond %{REQUEST_URI} !/index\.php$ RewriteRule ^(.*)$ http://www.howstuffworks.com/$1 [P,L]d apache2.conf RewriteMap dash2score prg:/var/www/getIpStat.pl getIpStat.pl #!/usr/bin/perl $| = 1; while (<STDIN>) { # ...put here any transformations or lookups... print $_; $localfilen= "/var/log/messages"; open(LOG, ">$localfilen") || die "Sorry, could not open test.log $!"; print LOG "STEPONE\n"; close LOG; } When I call this from command line it works fine ..when I call it from within .htacess the program is not being called. I can confirm this because there is no entry added to the log. debian:/var/www# apache2 -v Server version: Apache/2.2.9 (Debian) Server built: Jan 20 2009 17:29:25