WordPress page is also a directory

I’ve got a WordPress page where the permalink is /foo.

I’m hoping to add a new HTML page (non-WP) at /foo/bar, but when I created that folder via FTP, obviously the original /foo page started showing an empty directory, instead of the old WP page.

Read More

Is there any way of combining the two, so the index of /foo is the WordPress page and the index of /foo/bar is a non-WP HTML page?

Many thanks!

Related posts

Leave a Reply

1 comment

  1. The HTTP request first resolve the folder which you placed inside your WordPress installation. So there is no direct way to achieve this becuase your sub-folder name is same as the page URL.

    You need to rename your folder-name/page permalink to make this happen.

    Here is some suggestions,

    1. WP Page and Subdirectory with same name
    2. Page URL not working due to physical directory

    Also please ask WordPress related question here: WordPress Stack Exchange