httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Peck - MIS Web Design" <ni...@miswebdesign.com>
Subject RE: [users@httpd] mod_rewrite RewriteRule
Date Thu, 16 Oct 2003 19:06:45 GMT
Nice one, thanks :)

> -----Original Message-----
> From: Joshua Slive [mailto:joshua@slive.ca]
> Sent: 16 October 2003 19:51
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] mod_rewrite RewriteRule
> 
> 
> 
> On Thu, 16 Oct 2003, Nigel Peck - MIS Web Design wrote:
> 
> > Can someone please tell me why this rule isn't working?
> >
> > RewriteRule  ^viewforum\.php\?f=([0-9]+)$  /forum$1/  [L,R]
> 
> Because RewriteRule doesn't match against the query string.  You need
> something like
> 
> RewriteCond %{QUERY_STRING} ^f=([0-9]+)$
> RewriteRule ^viewforum\.php /forum%1/ [L,R]
> 
> 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
> 


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