<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I think you should use QGIS_PROJECT_FILE environment variable for
this purpose.</p>
<p>Regards<br>
</p>
<div class="moz-cite-prefix">Le 08/04/2021 à 04:05, 1520 gis a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAKTKyJJ84i6e=Ku0JcXq84AcD44XOnECtrODQO-Pdmmpvp2O6Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Developers,
<div><br>
</div>
<div>I have hit the head in a wall trying to hind the .qgs file
in the MAP variable. I want to change FROM
localhost/cgi-bin/qgis_mapserv.fcgi?map=/home/qgis/project/map.qgs</div>
TO localhost/cgi-bin/qgis_mapserv.fcgi?map=map.qgs
<div><br>
</div>
<div>Find below my unsuccessful attempt:</div>
<div><br>
</div>
<div>RewriteEngine on<br>
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f<br>
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d<br>
RewriteRule
^cgi-bin/qgis_mapserv.fcgi\?map\=([a-zA-Z0-9_-]+)\.qgs$
cgi-bin/qgis_mapserv.fcgi?map=/home/qgis/project/$1 [NC,QSA,L]<br>
</div>
<div><br>
</div>
<div>Any help will very much appreciated</div>
<div><br>
</div>
<div>I appreciate your time in advance.</div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Julierme</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
</body>
</html>