Multilingual does not add index.php to urls

Permalink
I am trying to set up the multilingual feature but links are not showing how they should instead of linkin towww.www.mysite.com/index.php/en/filename.php... it links towww.www.mysite.com/en/filename.php... giving a 404 error.
Any ideas ? Thank you