title: WHMCS .htaccess Remove .php and .html
body: <p>Does anyone know how to specifically write an .htaccess file to remove .php from WHMCS client area, for example clientarea.php to clientarea. Also this will be needed to remove the .html extension from the knowledgebase articles as well.</p>
  
  <p>I have tried this below but it is not working:</p>
  
  <pre><code>    #Force non-.php:
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
      RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
      RewriteRule ^([^\.]+)$ $1.php [NC,L]
  </code></pre>
  
  <p>Thank you for any help in advance!</p>