added rewrite rules and fixed infinite loop in skin/cape redirection