If your localhost is Windows then .htaccess files has lots of problems in Windows.