title: pretty faces configuration to remove folder from URL (JSF2.2 application deployed on Glassfish)
body: <p>I have JSF 2.2 application deployed on glassfish.
  I wan't to beautify the URL</p>
  
  <blockquote>
    <p><a href="http://MyWebsite/test/SOMEFOLDER/login.xhtml" rel="nofollow">http://MyWebsite/test/SOMEFOLDER/login.xhtml</a></p>
  </blockquote>
  
  <p>to be </p>
  
  <blockquote>
    <p><a href="http://MyWebsite/test/login.xhtml" rel="nofollow">http://MyWebsite/test/login.xhtml</a></p>
  </blockquote>
  
  <p>I am using pretty faces using the follow configuration </p>
  
  <pre><code>&lt;url-mapping id="login"&gt;
    &lt;pattern value="/login.xhtml" /&gt;
    &lt;view-id value="/SOMEFOLDER/login.xhtml" /&gt;
    &lt;!-- Non JSF View Id --&gt;
  &lt;/url-mapping&gt;
  </code></pre>
  
  <p>I am not adding anything in the web.xml</p>