build.gradle
// https://mvnrepository.com/artifact/org.ocpsoft.rewrite/rewrite-servlet compile group: 'org.ocpsoft.rewrite', name: 'rewrite-servlet', version: '3.4.1.Final' // https://mvnrepository.com/artifact/org.ocpsoft.rewrite/rewrite-config-prettyfaces compile group: 'org.ocpsoft.rewrite', name: 'rewrite-config-prettyfaces', version: '3.4.1.Final'
/WEB-INF/pretty-config.xml
<pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd"> <url-mapping id="login"> <pattern value="/login" /> <view-id value="/legacy/user/login.jsp" /> </url-mapping> </pretty-config>
References
http://www.ocpsoft.org/prettyfaces/