Amazon aws error 404 not found for pages except homepage Symfony 5

  amazon-ec2, php, symfony

I have created a website using Symfony 5 framework , for hosting my website i am using amazon aws ec2 instance . domain name is register on bigrock .
When i am accessing homepage of website i am able to access it .
pages except homepage i am getting following error

404 Page not found

i have already added .htaccesses file .
Same code is working fine on other Aws ec2 instance account . On other ec2 instance account i am able to access all the pages .

I think there is some issue with configuration but i don’t know where

Any idea what’s gone wrong ?
how can resolve Page not found resolve issue ?

Source: Symfony Questions