Passworded Directory Issue

Rich Edmonds

Seasoned Veteran
Joined
Feb 15, 2009
Messages
2,739
Reaction score
2
FP$
574
Need a slight helping hand with this for a small site, can't seem to get my head round it. rep and FP dosh for whoever has a super duper solution.

I have a rule in .htaccess, which looks for a physical file typed from the address bar and if it exists it loads that file, if it doesn't then it loads /index.php. The problem being we have a passworded /admin directory which was loading fine but now none of the pages are loading in that directory, so the rule below keeps making us go to /index.php.

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Uploading a dummy file "test.html" onto the server and typing into my address bar: http://www.mydomain.com/test.html, which is a real file it *should* load test.html, but instead it thinks it can't find it so loads /index.php. This has only just started to happen and was working fine before hand, nothing has been changed on the server.

Thanks for any help, greatly appreciated 🙂
 
Back
Top Bottom