Support » Fixing WordPress » Getting WP to Ignore Directory?

  • I like having WP “run” my site, but I’d like to be able to designate the odd subdirectory for “other” uses and have WP ignore it. For instance, if my site is http://www.mysite.com and WP is in the root, I’d like to be able to create http://www.mysite.com/ABC and have an .htaccess file in it so my brother could mess with is own private directory.

    How can I do this? When I set up the directory, WP seems to intercept a page request and dish itself up instead. Take a look if you like:
    http://enggeek.ca/ee315/index.html
    should prompt for a password and username, and based on a .htpasswd file entry, should allow http://enggeek.ca/ee315/index.html to be sent. It doesn’t happen.

    Thanks in advance to anyone gracious enough to reply!

    Jim Murphy

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’d like to do exactly the same!

    Any luck with this? Can anybody shed some light onto the matter?

    Thanks,
    Alex

    For any normal directory, just create it and it’ll work. No changes needed.

    When you’re using password protection, you’ll need to modify WordPress’ .htaccess file slightly.

    The workaround is to create an empty file somewhere called “onerror.html” and then to add these lines to the main .htaccess, before the WordPress rules:

    ErrorDocument 401 /onerror.html
    ErrorDocument 403 /onerror.html

    Change the path as appropriate for your setup, of course.

    Otto, thank you so much for that little workaround. I was having the exact same problem as the first two posters, but your little trick did the…uh…trick.

    Thank you, I searched all over for this problem.
    I knew that WordPress was rewriting my apache authorization requests.
    I just didn’t know what to do about it.
    I love simple solutions. Thanks again.

    Thank you, thank you, thank you for this solution! I don’t really know WHY this works, but it does 😉

    Tom

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting WP to Ignore Directory?’ is closed to new replies.