404 error happen to all of pages after installing the demo data

Home / 404 error happen to all of pages after installing the demo data

404-error

First, it is not theme bug! Please check your permalinks setting. Normally, the permalinks should be: http://{ your domain }/%postname%/ , but in some cases : http://{ your domain }/index.php/%postname%/

404-error-2