If you are having problems in permalinks, it may be due to a plug-in you installed or because of the changes you made in admin panel post types section. In this case, first, select and save permalink settings as default, and then select and save them by selecting as post name. This process will fix the broken permalinks.