updating files to fit .htaccess rewrite rules