<div dir="ltr"><div>Hi all,</div><div>I have a server with a basic wordpress installation. I am using the Wordpress generated htaccess mod_rewrite rules for pretty urls. I am also trying to password protect a single file as well. However, when I have "require valid-user" I get a 404 error from wordpress (I presume its from the mod_rewrite). If I remove the require-user, it works fine. I've googled it several times, each time getting a variant of these rules below, but none of them working. Any ideas?</div>
<div><br></div><div>Thanks,</div><div>Eric</div><div><br></div><div>RewriteEngine On</div><div>RewriteRule ^index\.php$ - [L]</div><div>RewriteCond %(REQUEST_URI) !^/eric.html</div><div>RewriteCond %{REQUEST_FILENAME} !-f</div>
<div>RewriteCond %{REQUEST_FILENAME} !-d</div><div>RewriteRule . /index.php [L]</div><div><br></div><div><Files eric.html></div><div>AuthUserFile /home/bootcamp/.htpasswds/public_html/eric</div><div>AuthType Basic</div>
<div>AuthName "My Secret Page"</div><div>require valid-user</div><div>errordocument</div><div><Files></div></div>