Changing and repairing permalink structure

There has been few occasions when permalink structure has broken after which all pages and posts are not found. This can be fixed by reseting the permalink structure. Open settiongs page Dashboard -> Settings -> Permalinks