cancel
Showing results for 
Search instead for 
Did you mean: 

URL rewrite

cyberheap
Champ in-the-making
Champ in-the-making
Hi!

I would like to rewrite this URL: http://localhost:8080/share/page/user/admin/dashboard?site=test

…to something like this: http://localhost:8080/share/page/site/test/user/admin/dashboard

I tried to add something like this:

<uri-template id="myuserdashboardpage">/site/{site}/user/{user}/dashboard</uri-template>

… to the "UriTemplate" config.


Any ideas?
1 REPLY 1

kevinr
Star Contributor
Star Contributor
The URITemplate config is for extracting data from URLs - it does not rewrite them. You want to look in urlrewrite.xml - we are using the http://www.tuckey.org/urlrewrite/ library - there are examples on that site.

Cheers,

Kev