WP Hive » Troubleshooting and How-To

The private directory

(2 posts)

  1. wwday3
    Member

    OK, so the more I use wp-hive, the more I find a need to have additional files in the private domain directory (where robots.txt, etc. is supposed to go). So, how about this - in wp-hive, check for an extension (.html, .jpg, whatever) and redirect to that page in the private folder? Is this possible? Or, is there a better method?

    Posted 2 years ago #
  2. ikailo
    Developer

    I recommend using mod-rewrites to map an entire directory to a specific directory on the server. While I can't give you the exact details on how to do it, you will need to create a WP rewrite rule using regex.

    It would be similar to how I manage the sitemap.xml file in the plugin, but instead of for specific files, it will be for a full directory.

    It's something I intended to create for the new version, but haven't started yet.

    Hope that helps a bit..

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.