Results 1 to 3 of 3

Thread: urlrewrite.xml

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    561

    Default urlrewrite.xml

    Could someone explain me the reason why, a Roo web project uses urlrewrite.xml? What is the idea behind this?

    Code:
    <urlrewrite default-match-type="wildcard">
    	<rule>
    		<from>/resources/**</from>
    		<to last="true">/resources/$1</to>
    	</rule>
    	<rule>
    		<from>/static/WEB-INF/**</from>
    		<set type="status">403</set>
    		<to last="true">/static/WEB-INF/$1</to>
    	</rule>
    	<rule>
    		<from>/static/**</from>
    		<to last="true">/$1</to>
    	</rule>
    	<rule>
    		<from>/</from>
    		<to last="true">/app/index</to>		
    	</rule>
    	<rule>
    		<from>/app/**</from>
    		<to last="true">/app/$1</to>
    	</rule>
    	<rule>
    		<from>/**</from>
    		<to>/app/$1</to>
    	</rule>
    	<outbound-rule>
    		<from>/app/**</from>
    		<to>/$1</to>
    	</outbound-rule>	
    </urlrewrite>
    Thank you

  2. #2
    Join Date
    Sep 2009
    Posts
    101

  3. #3
    Join Date
    Mar 2007
    Posts
    561

    Default

    Thx alot, now it's clear to me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •