Search code examples
wordpress.htaccessdirectoryurl-rewritingslug

How can I make a Wordpress page override an existing directory (not sub-directory)?


I have an existing directory called /final-fantasy-vii/ which has an /images/ folder inside of it. I created a page with the same slug of "final-fantasy-vii" and when I go to access that page online, it shows me the /images/ folder instead of the actual page I created in WordPress.

Is there a way around this? I've been cracking away at it for a couple of days now and I just can't figure out how to do it. Any help is much appreciated.

Thank you!


Solution

  • Either change the slug (can be done while editing page, near the top in the middle of the page) or change the pre-existing directory. The slug doesn't have to be an exact match with the title so your best option is probably to just tweak that to something different that still makes sense for the content.