Created
February 23, 2013 23:59
-
-
Save humus/5021923 to your computer and use it in GitHub Desktop.
Url rewrite para aplicación spring-mvc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE urlrewrite | |
| PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" | |
| "http://www.tuckey.org/res/dtds/urlrewrite3.0.dtd"> | |
| <urlrewrite default-match-type="wildcard"> | |
| <rule> | |
| <from>/</from> | |
| <to type="redirect" last="true">home</to> | |
| </rule> | |
| <rule match-type="regexp"> | |
| <from>^/((foundation|js|css|images)/(.*))</from> | |
| <to last="true">/$1</to> | |
| </rule> | |
| <rule> | |
| <from>/**</from> | |
| <to last="true">/app/$1</to> | |
| </rule> | |
| <outbound-rule> | |
| <from>/app/**</from> | |
| <to>/$1</to> | |
| </outbound-rule> | |
| </urlrewrite> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment