fixed issue with some servers rewrite setup