httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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]

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