thank you , i did that before posting my answer. In any case the problem is solved!!I still don't know why but mod_rewrite, despite being enabled, was not properly loaded in WAMP. I uninstalled Wamp, I reinstalled it, enabled mod_rewrite again and it worked!
thank you very much for your help.