Fix .htaccess rewrite rule to work with trailing slashes.