[mapguide-users] Mapguide-Apache URL rewrite

Jason Birch jason at jasonbirch.com
Fri Apr 1 03:24:55 EDT 2011


My feeling is that #2 isn't going to work.  You may be able to set it up
with an external redirect, but I think trying to hide the URL will make
Fusion break as relative paths, etc will blow up.

There are other ways around this, such as creating your template under the
/gis folder and adjusting the paths, hard-coding your application-definition
(I think Fusion still looks for ApplicationDefinition.xml in the template
folder).  A bit of work though, and you lose the flexibility of being able
to change the application on the fly.  You could also look at embedding the
map in an iFrame or something similar?

Jason

On 31 March 2011 14:34, ggdm wrote:

> Hi everybody,
>
> I'm trying to rewrite URLs in Apache through mod_rewrite extension, in
> orderto:
>
> 1. Shorten and simplify links to maps;
> 2. Hide real URLs to users.
>
> My thought was to point to something like:
>
> http://www.somesite.com/gis
>
> and going directly to:
>
>
> http://www.somesite.com/mapguide/fusion/template/mapguide/slate/index.html?ApplicationDefinition=Library://SomeFolder/SomeFlexibleLayout.ApplicationDefinition
>
> No matter how long/hard I tried, I didn't succed in it
>
> My best result was editing httpd.conf and adding after
>
>
>
> this:
>
> RewriteEngine on
> RewriteBase /mapguide/
> RewriteRule ^gis
>
> fusion/template/mapguide/slate/index.html?ApplicationDefinition=Library://SomeFolder/SomeFlexibleLayout.ApplicationDefinition
>
> This way it redirects but didn't load anything (blank white page, although
> I
> can read "slate" in my tab name)
>
> Any help is really appreciated.
>
>
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Mapguide-Apache-URL-rewrite-tp6228837p6228837.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20110401/485e48fb/attachment.html


More information about the mapguide-users mailing list