.htaccess on non-wp directory…
-
i’ve searched the forum a tad but couldn’t find a result for this seemingly simple problem.
i use “pretty” urls for my wordpress pages and posts (site.com/aboutme/, site.com/gallery/summer-day)
the htaccess file looks like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
all my wp related files are in a directory called “wp” (site.com/wp/wp-admin, etc)
however, i have physical directories not related wordpress i want to manipulate with .htaccess. specifically, i want to password protect one. (site.com/secret). with directory in question is just a directory of files, no index page. also, it has a subdomain attached to it (secret.site.com). of course, when i try to implament an htaccess password protection, i get an alert from wordpress saying that a page could not be found.
what do i do in this scenario to allow a directory to be password protected without it conflicting with wordpress?
- The topic ‘.htaccess on non-wp directory…’ is closed to new replies.