You were right... As soon as I removed the leading slash, the problem was solved. But now I have another issue... While I want this rewrite to occur, I also want everything else to redirect to a default URL. To do this, I added the following: RewriteRule ^([0-9]{5}) http://.../weather.pl?zip=$1 [R] RewriteRule ^(.*) http://.../DEFAULT [R] The first of these rules intended to rewrite only if a 5 number zip exists. The second to redirect everything else. Unfortunately, that much of a wildcard also seems to grap 5-digit zips as well. I'm sure this is simply a regex thing, which I'm not that great at. How would I get it to redirect everything except for the 5-digit zip? ---- Thank You, Jason Williard On 1/19/06, Jason Williard <jwilliard@xxxxxxxxxx> wrote: > I added the RewriteLog directive to the .htaccess file and am now getting > Internal Error messages. When looking at the error logs, I get: > > [Thu Jan 19 13:20:08 2006] [alert] [client x.x.x.x] > /www/vhosts/domain.com/weather/.htaccess: RewriteLog not allowed here RewriteLog needs to be defined in httpd.conf. But given that you are using .htaccess (which I didn't notice before), you can probably solve your problem by removing the leading slash from your RewriteRules. This is not present when mod_rewrite is applied at the <Directory>/.htaccess level. (Of course, you would easily note this if you used the RewriteLog to analyze the request.) Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx