httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "José Ramón López" <>
Subject [users@httpd] mod_rewrite problem
Date Mon, 04 Jun 2007 11:52:50 GMT
Hi List!

I am trying to configure a rule with mod_rewrite, which allow me to change
the value of one script parameter.

I want the script to foward me to an error page when introducing
service=wfs  in the request

The sevice=wfs parameter can be in all positions
This is my line:
RewriteRule ^/cgi-bin/wms\?(.*)service=wfs$ /error.html
Is it correct?
If i put the line as follows, it works perfectly:

RewriteRule ^/cgi-bin/wms\? /error.html

But when I add the service parameter, it executes the script and it does not
forward me to that page, (I mean as follow:)
RewriteRule ^/cgi-bin/wms\?service=wfs /error.html

Thank you very much.

View raw message