I have a directory /mydir. If I put an index.html in there, it will open when someone browses to example.com/mydir, and their browser shows only the path, not index.html.
How can I get the same behavior, but opening a Wordpress page instead? I can put an .htaccess file there with
DirectoryIndex, but that seems to only point to files, not Wordpress pages.
Alternatively, I could use
RedirectMatch "^/mydir/?$" "/mydir/some-wordpress-page/"
but then the page slug would show. (The page in question is a custom post type that has has "mydir/" as part of the base URL.) I basically want, in this directory, the desired page to work like the Wordpress home page.