Changed the RewriteBase to match environments