title: Redirection from root (index.html) on JSF RichFaces
body: <p>Trying to redirect to <code>admin.xhtml</code> page when I access <code>http://localhost:8080/CSPPortal/index.html</code>. The root <code>index.html</code> contains </p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;meta http-equiv="Refresh" content="0; URL=pages/admin.jsf"/&gt;&lt;/head&gt;&lt;/html&gt;
  </code></pre>
  
  <p>The <b>problem</b> is the <b>url keeps going back</b> to <code>login.jsf</code> which was declared in the <code>index.html</code> before.</p>
  
  <p><b>Tried:</b> adding an empty <code>index.jsf</code> page to the root folder. Tried mapping <code>FacesServelet</code> on <code>*.xhtml</code> <a href="https://stackoverflow.com/a/5345633/1108500">old answer on SO</a>. Tried removing <code>&lt;welcome-file-list&gt;</code> from <code>web.xml</code>. <b>ALL trial FAILED!!!!</b> Any suggestion about where things are going wrong would be really appreciated.     </p>
  
  <p>Here is <code>web.xml</code> content: </p>
  
  <pre><code>&lt;servlet&gt;
   &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
   &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
   &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet-mapping&gt;
   &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  
  &lt;welcome-file-list&gt;
   &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Navigation rule in <code>faces-config.xml</code> is as follows, because I don't have any link for admin.xhtml yet: </p>
  
  <pre><code>&lt;navigation-rule&gt;
   &lt;from-view-id&gt;/pages/login.xhtml&lt;/from-view-id&gt;
   &lt;navigation-case&gt;
    &lt;from-outcome&gt;result&lt;/from-outcome&gt;
    &lt;to-view-id&gt;/pages/result.xhtml&lt;/to-view-id&gt;
   &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>Using, JBoss AS 7.1, RichFaces 4.0, JSF 2.0 (via JBoss Tools)</p>