title: Remove action name from Url in cakephp?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/14069601/how-to-remove-action-name-from-url-in-cakephp">How to remove action name from url in cakephp?</a>  </p>
  </blockquote>
  
  
  
  <p>I am using cakephp to develop my website in Cakephp and I would like to remove action(or view )name from the application URL what should I do fro that. 
  My requirement is I want to add the parameters in place of view name recently my URL is like:</p>
  
  <blockquote>
    <p>"domainname/controllername/viewname/param1/param2"</p>
  </blockquote>
  
  <p>but I need </p>
  
  <blockquote>
    <p>"Domainname/controllername/param1/param2"</p>
  </blockquote>
  
  <p>My .htaccess files are like below</p>
  
  <p>.htaccess in root folder</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on 
     RewriteRule    ^$     [L]
     RewriteRule    (.*) app/webroot/index.php/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>.htaccess in app folder</p>
  
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    RewriteBase /liberty_new/app/
    RewriteRule    ^$    webroot/index.php/    [L]
    RewriteRule    (.*) webroot/index.php/$1    [L]
   &lt;/IfModule&gt;
  </code></pre>
  
  <p>.htaccess in webroot folder</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
   RewriteEngine ON
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ /$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>