[mapguide-users] Re: Mapguide-Apache URL rewrite

ggdm giudim86 at libero.it
Sat Apr 2 11:41:31 EDT 2011


Good news here:

It's almost done using this in httpd.conf:

RewriteRule ^gis
/mapguide/fusion/template/mapguide/slate/index.html?ApplicationDefinition=Library://SomeFolder/SomeFlexibleLayout.ApplicationDefinition
RewriteRule ^(jxtheme|icons)\.css$
/mapguide/fusion/template/mapguide/slate/$1.css [L]
RewriteRule ^images/(.*)$ /mapguide/fusion/template/mapguide/slate/images/$1
[L]
RewriteRule ^(.*)$ /mapguide/fusion/$1

RewriteRule ^ApplicationDefinition\.xml$
/mapguide/fusion/templates/mapguide/slate/ApplicationDefinition.xml

Explanation:

I found a 404 error in Firebug saying it couldn't load
ApplicationDefinition.xml in the template folder. Adding last rewriteRule
fixes this and loads the web layout with the default ApplicationDefinition
file (pointing to default Sheboygan sample map which I don't even have in my
Repository, so result was error in my case). This means that it doesn't
process correctly my first RewriteRule with my AppDef file parameter. I
think escaping is not the case here (as previously suggested).

Again, if anyone, with more Apache knowledge than me, could help me with
this...

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapguide-Apache-URL-rewrite-tp6228837p6234039.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list