Hello,
 
I have a Virtual host that utilizes mod rewrite in the following manner
 
 
<VirtualHost 192.168.0.127:80>

...
 
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /notfound.php?%{QUERY_STRING}

 
i.e. missing documents are passed to notfound.php
 
I also have a directory inside the VH which I want to pass such requests to a 
different script
 
 
<Directory "/var/www/html/info/admin/">

 AuthName "Restricted"
  NTLMAuth on
  NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
  NTLMBasicAuthoritative on
  AuthType NTLM
  require valid-user

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteRule ^admin/(.*) /admin/index.php?%{QUERY_STRING} [L]
 
</Directory>

 
Still, http://info/admin/nonexistent will call notfound.php and not 
admin/index.php
 
 
Can you suggest a resolution to this?
 
Thanks,
 
J.
 
 
 
 
 

Reply via email to