httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
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
<dang@planetmirror.com> 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
RewriteLog?

Joshua.

---------------------------------------------------------------------
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