httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] mod_rewrite and RewriteRule
Date Tue, 31 Aug 2004 13:43:45 GMT
On Mon, 30 Aug 2004 14:25:36 +1000 (EST), Dan Goodes
<> wrote:
> What string is used as "Pattern"? I always thought it was the path of the
> URL, but recent testing seems to indicate that it's the filesystem path
> that's matched.
> E.g. if I have
> RewriteCond %{REQUEST_FILENAME}  -f
> RewriteRule ^/(.*)$     /some/script.php?x=$1 [PT,T=application/x-httpd-php,L]
> And script.php just echo's $x, then I get the FULL path to the file, not
> the matched URL.

It should be the url-path and not the file-path.  Do you have other
RewriteRules that might be modifying the url?  Have you tried the


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message