added rewrite rules for apache