<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Lucida Sans Unicode">Part of my Server
config looks like this:<br>
location /admin/ {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; auth_basic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Restricted";<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; auth_basic_user_file&nbsp; /path/to/.htpasswd;<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #rewrite any .xhtml page to page.php<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewrite ^/(.+)\.xhtml$ /$1.php last;<br>
&nbsp;&nbsp;&nbsp; }<br>
<br>
But when I go to mysite.com/admin/somefile.xhtml I don't get asked for
Authentification and the page will display.<br>
<br>
If I comment out the rewrite rule then I do get asked for
authentification.<br>
<br>
Can anyone advise me on how to get authentification and the rewrite
rule working together?<br>
<br>
Thanks<br>
<br>
Dave<br>
</font></font>
</body>
</html>