Pages other than Home page not displayed even when URL is good

Ariana: 20 May 2022

I installed WordPress on a dedicated server running Debian and each time a create a new page ( I can't access it, and when I try I get the error:

Not Found

The requested URL /mynewpage was not found on this server.

Even when I modify it in the WP admin board, If I click "Preview the changes", I get this error. The only page working is

Could anyone please help me ?

Thanks for your help


Nora: 20 May 2022

After checking phpinfo(), mod_rewrite wasn't enabled so I enabled it:

and it worked !