[mapserver-users] Rewrite rule problem
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Nov 1 16:13:56 PDT 2017
Goran, for good Open Source karma would you mind recording and
publishing all of your steps, to get MS4W and Apache to do the rewriting
you need? You can add the new page on the MapServer wiki
(https://github.com/mapserver/mapserver/wiki) or even directly on the
MS4W wiki (https://www.ms4w.com/trac/wiki), whatever is easiest for you.
A huge thank you for that. -jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2017-11-01 7:12 PM, gorank wrote:
> Hi Andreas,
>
> Finally it works perfectly and it solved most of my problems. I would like
> to go one step forward. How will looks SetEnvIfExpr and Rewrite rule in
> case when in the mapfile there is a Real time substitution parameter (in my
> case year - 2015, 2016, ...)
> I would like to write url as you proposed in previous post but with added
> year parameter. Example for year 2015:
> from
> http://localhost:81/cgi-bin/GDZ/2015/wms?map=N1.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0
>
> to get
>
> http://localhost:81/cgi-bin/GDZ/wms?year=2015&map=N1.map&REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0
>
> I tried to do it following your logic but not successfully.
>
> Best regards,
> Goran
>
>
More information about the MapServer-users
mailing list