XF 1.4 Solved: Unable to password protect admin with WordPress installed

vbuser

Active member
Wanted to share since this caused me days of grief. If you have wordpress installed in a sub directory but showing on your root, you won't be able to password protect directories or files. Wordpress suggests making a random page just for this purpose and using it in your wordpress .htaccess like so:

Code:
ErrorDocument 401 /make_a_page.htm
ErrorDocument 403 /same_page.htm
ErrorDocument 404 /same_page.htm

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If you password protect the admin without this you'll get a not found page.
 
Last edited:
Back
Top Bottom