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] modifying url paramteres with mod_rewrite
Date Wed, 02 Jul 2003 17:26:59 GMT

On Wed, 2 Jul 2003, Guillermo Payet wrote:
> I need to rewrite a URL like this one:
>
>  /cow.jsp?page=2
>
> into:
>
>  /animal.jsp?name=cows&page=2
>
> I've tried all kinds of approaches to this with mod_rewrite, but
> I cannot get mod_reqrite to modify the QUERY_STRING.
>
> Any clues?

RewriteEngine On
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^/cow.jsp$ /animal.jsp?name=cows [QSA]

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