[mapserver-users] Rewrite rule problem
Eichner, Andreas - SID
Andreas.Eichner at sid.sachsen.de
Thu Nov 2 03:22:18 PDT 2017
Damn,
the last RewriteRule should be
RewriteEngine On
RewriteRule "^/wms/([[:alnum:]]+)/([[:digit:]]+)$" /cgi-bin/mapserv?MAP=C:/ms4w/apps/Demo/$1.map&year=$2 [PT,QSA]
The character classes prevent bad file names and value for the "year" parameter. You should set up a proper validation for the year and/or MS_MAP_PATTERN too.
Sorry for the noise
More information about the MapServer-users
mailing list