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
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to