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


#1

Hi,

I’m trying to shift my blog from a Wordpress.com 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 (blog.example.com/?p=blah) then all works fine. But saving the settings, restarting everything and then trying to change them back to (blog.example.com/2014/4/foobar) breaks everything again.

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

Any help appreciated.


#2

I think the .htaccess file is not present in WordPress root folder. Add .htaccess file https://codex.wordpress.org/htaccess


#3