xxxxxxxxxx
There is a good chance that this is happening because the .htaccess file
is not configured correctly. To fix this, you can try logging into the
WordPress dashboard and re-save the "permilink" settings.
WordPress Dashboard > Settings > Permalinks > Save.
This should rewrite some lines in the .htaccess file for you, and, hopefully
it will fix the problem that you are having.
I hope this helps; happy coding ^_^