Oh, Nico, there&#39;s a flag you can use for that, [QSA]:<br><a href="http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa">http://httpd.apache.org/docs/current/rewrite/flags.html#flag_qsa</a><br><a href="http://www.simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string/">http://www.simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string/</a><br>

<br>regards, michael<br><div class="gmail_quote">On Tue, Jan 31, 2012 at 5:22 PM, Nico Alberti <span dir="ltr">&lt;<a href="mailto:n8@langhirano.it">n8@langhirano.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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 <a href="http://mapserver.org/ogc/wms_server.html#online-resource-wms" target="_blank">http://mapserver.org/ogc/wms_<u></u>server.html#online-resource-<u></u>wms</a> so I wrote this .htaccess file:<br>


<br>
RewriteEngine on<br>
RewriteRule gisservice?(.*) /cgi-bin/mapserv?map=/var/www/<u></u>osm-demo/mapserver-utils-svn/<u></u>osm-google.map&amp;$1<br>
<br>
The problem is that when a client invokes: <a href="http://127.0.0.1/gisservice?VERSION=1.1.1&amp;SERVICE=WMS&amp;REQUEST=GetCapabilities" target="_blank">http://127.0.0.1/gisservice?<u></u>VERSION=1.1.1&amp;SERVICE=WMS&amp;<u></u>REQUEST=GetCapabilities</a><br>


<br>
i get the error &quot;Traditional BROWSE mode requires a TEMPLATE...&quot; because, from what I see trying to debug mod_rewrite, all the arguments (except the map one) are stripped away from the url.<br>
<br>
Can anybody give me some hint? I can live without rewtiting the url, I would love to understand what&#39;s going wrong.<br>
<br>
Thank you in advance and sorry for my poor English.<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</blockquote></div><br>