fixing htaccess rewrite rules