Importing WP.c XML - permalinks broken and don't update


I’m trying to shift my blog from a site to my own self-hosted site. I’ve struggled with permissions and various other minor problems and seem to have most things working, so I exported the XML from my wordpress site and imported it locally.

The blogposts appear on the frontpage fine, but when I click on the titles, I get a 404 for the permalink address.

If I change the permalink settings back from my preferred setting (Month/Name) to default ( then all works fine. But saving the settings, restarting everything and then trying to change them back to ( breaks everything again.

Aren’t the permalinks supposed to re-write when you change the settings?

Any help appreciated.

I think the .htaccess file is not present in WordPress root folder. Add .htaccess file