Hi Nico, as far as I remember, RewriteRule does not know anything about Query String in the request. Think you'd like to use RewriteCond %{QUERY_STRING} ^(.*)$ for that
regards, michael On Tue, Jan 31, 2012 at 5:22 PM, Nico Alberti <n...@langhirano.it> wrote: > Hi everybody and sorry if my question is both lame and mostly due to my > lack of knowledge in using mod_rewrite, but I am having trouble changing > the Resource URL of my wms service. I followed the instructions at > http://mapserver.org/ogc/wms_**server.html#online-resource-**wms<http://mapserver.org/ogc/wms_server.html#online-resource-wms>so > I wrote this .htaccess file: > > RewriteEngine on > RewriteRule gisservice?(.*) /cgi-bin/mapserv?map=/var/www/** > osm-demo/mapserver-utils-svn/**osm-google.map&$1 > > The problem is that when a client invokes: http://127.0.0.1/gisservice?** > VERSION=1.1.1&SERVICE=WMS&**REQUEST=GetCapabilities<http://127.0.0.1/gisservice?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities> > > i get the error "Traditional BROWSE mode requires a TEMPLATE..." because, > from what I see trying to debug mod_rewrite, all the arguments (except the > map one) are stripped away from the url. > > Can anybody give me some hint? I can live without rewtiting the url, I > would love to understand what's going wrong. > > Thank you in advance and sorry for my poor English. > ______________________________**_________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.**org <mapserver-users@lists.osgeo.org> > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users> >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users