This is quite common problem where everyone will encounter, this sounds like there is no htaccess file in your root directory else there is no enough permission to rewrite. Make sure htaccess presence and its permission, hope this will resolve your problem.