Oh, Nico, there's a flag you can use for that, [QSA]: http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa http://www.simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string/
regards, michael On Tue, Jan 31, 2012 at 5:22 PM, Nico Alberti <[email protected]> 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 > [email protected].**org <[email protected]> > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users> >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
