httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Posts" <po...@2-tiersoftware.com>
Subject [users@httpd] Rewrite only if filename exists
Date Thu, 27 Mar 2003 21:26:35 GMT
Hi,

I'm using the code below in my conf file. Problem is if there is no
filename it also rewrites. Does anyone know how to rewrite only if
{REQUEST_FILENAME} isn't blank? I'm assuming it's another condition.

    RewriteEngine On
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule .
%{DOCUMENT_ROOT}/getfile.php?%{QUERY_STRING}&file=%{REQUEST_URI} [L]


Thanks,
Kawika


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message