WordPress doesn’t use directories or sub-directories. Perhaps you need to use Pages and child Pages?
I created the nested page but when I try to access the url example.com/dir/subdir it returns 404 error and also when I try to link to the page from example.com/dir I can’t find it in the existing content list.
Have you set up any custom permalinks yet?
I was able to set it but when I access the link it returns 404 error despite that the page is available
eg: I have a forum page at http://www.domain.com/forum I set another page as http://www.domain.com/forum/topic as described in the page you provided but now when I access http://www.domain.com/forum/topic I get error: The page you requested could not be found.
How to fix this.
Hello,
I was able to do it now after adding /directoryname in perm link settings now I want a subpage for subpage eg example.com/dir/subdir/subdir could you please explain how to do this?