I'm trying to use mod rewrite to perform some URL rewriting but it doesn't seem to be working. I do have mod_rewrite configured with apache. Here is the current setup of .htaccess:
Options SymlinksIfOwnerMatch
RewriteEngine on
Options +FollowSymlinks
RewriteRule /galleries/gallernamy/(.*)$ /galleries/galleryname/index.php?refcode=$1 [L,NE]
However, when I go to www.domain.com/galleries/test/anything it gives me a 404 Page Cannot Be Found. It works when I go to www.domain.com/galleries/test though. It almost seems like it's just not listening to the rule. Any ideas?