Question:

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 (www.mydomain.com/mynewpage) 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 www.mydomain.com

Could anyone please help me ?

Thanks for your help

Matthias

Answer:
Nora: 20 May 2022

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

http://linuxcommando.blogspot.fr/2014/03/how-to-enable-modrewrite-for-apache-web.html

and it worked !