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 RewriteRule
Date Thu, 16 Oct 2003 18:51:02 GMT

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]


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