Skip to content

Instantly share code, notes, and snippets.

@humus
Created February 23, 2013 23:59
Show Gist options
  • Select an option

  • Save humus/5021923 to your computer and use it in GitHub Desktop.

Select an option

Save humus/5021923 to your computer and use it in GitHub Desktop.
Url rewrite para aplicación spring-mvc
<?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