add RewriteBase to handle subdirectory