Made Mediawiki rewrite rules work for virtual hosts

Related to cdd1785cd6380e971ad0413e7ecfd3af7ab38625