Fixed RewriteBase when empty