Addning an exception to Mod Rewrite

I’m using Wordpress with permalinks. Here is my current .htaccess file:

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

# END WordPress

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /home/tlovett1/.htpasswd 
AuthGroupFile /dev/null 
<Files ps.php>
require valid-user
</Files>

However when I direct my browser to mysite.com/ps.php, I get a 404 error. If I remove the mod rewrite part, however, it works fine. Can I add an exception to the mod rewrite part to make it ignore /ps.php.

Any help is appreciated. Thanks

optl,

Oh, goodie! Time for more ranting!

# BEGIN WordPress
[COLOR="Red"]<IfModule mod_rewrite.c>[/COLOR]
RewriteEngine On
[COLOR="Red"]RewriteBase /[/COLOR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
[COLOR="Red"]</IfModule>[/COLOR]

# END WordPress

[COLOR="Gray"]AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /home/tlovett1/.htpasswd 
AuthGroupFile /dev/null 
<Files ps.php>
require valid-user
</Files>[/COLOR]

ps.php should NOT be redirected if it exists OR it should be redirected to index.php (where WP can parse the URI to decide what to do with it). You should NOT be getting a 404 (based on what you’ve shown).

Okay, can you add an exception for ps.php? You already have as the RewriteCond %{REQUEST_FILENAME} !-f says to redirect if ps.php is NOT a file.

Regards,

DK