Thanks for your answer.<br>First, I'd corrected serverAndCGI value.<br><br>Without any redirect rule all works perfectly.<br>Currently I have only one RedirectRule that redirects any <i>/wms/project</i> request to <i>qgis_mapserv.fcgi</i> script), <br>

<br><div style="margin-left:40px"> <Directory /var/www/qgis-web-client/site/><br>        Options Indexes FollowSymLinks MultiViews<br>        AllowOverride all<br>        Order allow,deny<br>        allow from all<br>

        RewriteEngine On<br>        RewriteRule wms/([^/]+)$ <a href="http://vega.faunalia.it/cgi-bin/qgis_mapserv.fcgi?map=/var/www/qgis-web-client/projects/$1.qgs">http://vega.faunalia.it/cgi-bin/qgis_mapserv.fcgi?map=/var/www/qgis-web-client/projects/$1.qgs</a> [QSA,L]<br>

<br>  </Directory><br></div><br><br>so I access to QGIS web client at this url (the actual one):<br><br><blockquote><a href="http://vega.faunalia.it/qgis-web-client/site/qgiswebclient.html?map=/var/www/qgis-web-client/projects/candela.qgs">http://vega.faunalia.it/qgis-web-client/site/qgiswebclient.html?map=/var/www/qgis-web-client/projects/candela.qgs</a><br>

</blockquote><br>Is it correct? It has full project path with project name in <i>map</i> request parameter.<br>Bye,<br><br><br><div class="gmail_quote">2013/2/26 Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
You always have to specify a project path and project name with QGIS web<br>
client. Regardless whether you use URL rewriting or not. The client does<br>
not work without project path and name.<br>
<br>
So a correct URL to start the client would be:<br>
<br>
<a href="http://hostname/maps/projectpath/projectname?optionalParameters" target="_blank">http://hostname/maps/projectpath/projectname?optionalParameters</a><br>
<br>
Of course this all depends on your setup.<br>
<br>
This whole URL rewriting is a bit complex to set up. Before you do it I<br>
would recommend you test the client without URL rewriting, e.g. with a<br>
URL like:<br>
<br>
<a href="http://hostname/qgiswebclient.html?map=/home/web/qgis-web-client/projects/naturalearth_110million.qgs&format=image/png&visibleLayers=Rivers,Glaciated%20Areas,Lakes,Land,Ocean" target="_blank">http://hostname/qgiswebclient.html?map=/home/web/qgis-web-client/projects/naturalearth_110million.qgs&format=image/png&visibleLayers=Rivers,Glaciated%20Areas,Lakes,Land,Ocean</a><br>


<br>
For 'var serverAndCGI = "<a href="http://THE_HOST/wms/" target="_blank">http://THE_HOST/wms/</a>"' I recommend to not<br>
specify the servername, in case you move the whole thing to another<br>
server. Better would be:<br>
<br>
var serverAndCGI = "/wms/"<br>
<br>
Hope this helps a bit?<br>
<br>
Andreas<br>
<br>
<br>
Am <a href="tel:26.02.2013%2016" value="+12602201316">26.02.2013 16</a>:33, schrieb Emilio Loi:<br>
<div><div class="h5">> Hi everybody, I hope you can help me.<br>
> I'm trying to enable URL Rewriting in Qgis-web-client as described at point<br>
> 5 of the configuration guide (<a href="https://github.com/qgis/qgis-web-client" target="_blank">https://github.com/qgis/qgis-web-client</a>)<br>
> I'm using this rule:<br>
><br>
> RewriteRule wms/([^/]+)$<br>
> cgi-bin/qgis_mapserv.fcgi?map=/var/www/qgis-web-client/projects/$1.qgs<br>
><br>
> It works well: when I browse <a href="http://THE_HOST/wms/example" target="_blank">http://THE_HOST/wms/example</a> on firefox the<br>
> server returns the cgi script result whit parameter<br>
> map=/var/www/.../example.qgs<br>
> Then I've set<br>
><br>
> var serverAndCGI = "<a href="http://THE_HOST/wms/" target="_blank">http://THE_HOST/wms/</a>"<br>
><br>
> in GlobalOptions.js instead of the full url.<br>
><br>
> The problem shows up when Qgis-web-client trys to use the cgi script:<br>
> instead of call /wms/example/?params it calls /wms/NOTHING/?params. (as you<br>
> can see)<br>
><br>
> [16:09:20.950] GET<br>
> <a href="http://THE_HOST/wms//?&_dc=1361891360854&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings[HTTP/1.1" target="_blank">http://THE_HOST/wms//?&_dc=1361891360854&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings[HTTP/1.1</a><br>


> 404 Not Found 126ms]<br>
><br>
> What am I forgetting to configure?<br>
> Thanks in advance.<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br>