Support » Everything else WordPress » .htaccess fix for page slugs that match directory names?

  • I’ve got a client who is migrating from HTML site to wordpress.

    He has directories that he’s used for years to organize hundreds of pages and now wants to integrate wordpress. Unfortunately, wordpress is over-ridden by the directory structure.

    e.g. if a page slug is but there is an actual /dir1/ folder on the site, the browser will display the text in /dir1/index.html (or a directory listing if there is no index.html), rather than the wordpress page.

    Is there an .htaccess tweak to fix this? He is slowly transitioning everything over to wordpress but wants things to continue to work while the migration is going on.

  • The topic ‘.htaccess fix for page slugs that match directory names?’ is closed to new replies.