magento2 CMS pages 404 error

Today I will show you, how you can fix the magento2 CMS pages 404 error. I got many times this issue while working on the magento 2 site. So finally I think, the fixes tricks may can help other person. This issue occurred due to single mode of the magento2 site.  Please follow below steps :

  1. Disable single store mode (admin>stores>configuration>general>general)
  2. Assign a store view to the CMS page.
    • go to your cms pages ( admin>content>pages)
    • edit the page which gives you the 404 message
    • Set the store view to “All Store Views”
    • save the page
  3. enable single store mode(admin>stores>configuration>general>general) (If you don’t want to site be single mode then leave this step)
  4. refresh cache (admin>system>cache management)

 

That’s all!!