Subpages return 404 error

I set permanent link as
I’m talking about this type of pages:
All first level pages work fine. But subpages don’t.

For the first level page I get url like this:
For the second level page –

If I use permanent link or, subpage works fine then.

How does make it work with mask?


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress


I found the reason. It is a post_type field in the wp_posts. But I cannot find out where this field is saved?

Solutions Collecting From Web of "Subpages return 404 error"