[Qgis-user] Hind the QGS path in the MAP Variable

1520 gis juliermeopensourcedeveloper at gmail.com
Wed Apr 7 19:05:26 PDT 2021


Hi Developers,

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
TO localhost/cgi-bin/qgis_mapserv.fcgi?map=map.qgs

Find below my unsuccessful attempt:

RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
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]

Any help will very much appreciated

I appreciate your time in advance.

Kind regards

Julierme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210407/d807d61b/attachment.html>


More information about the Qgis-user mailing list