Re: how to write rewrite rule?

Splash Forums PrettyFaces Users how to write rewrite rule? Re: how to write rewrite rule?

#22001
<url-mapping>
<pattern value="/admin" />
<view-id value="/admin/admin.xhtml" />
</url-mapping>

Note that .xhtml in the above mapping should be changed to whatever extension your Faces Servlet is mapped to. If you don’t use extensions, then you’ll need to add the correct URL prefix to match your Faces Servlet mapping.

Hope this helps,

Lincoln