title: remove .php with .htaccess
body: <p>I am creating a .htaccess file in the path of my site <code>var/www/mysite/</code> to remove my files the ".php", but does not work</p>
  
  <pre><code># Apache Rewrite Rules
   &lt;IfModule mod_rewrite.c&gt;
   Options +FollowSymLinks
   RewriteEngine On
   RewriteBase /
  
  # Add trailing slash to url
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
  RewriteRule ^(.*)$ $1/ [R=301,L]
  
  # Remove .php-extension from url
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^([^\.]+)/$ $1.php 
  
  # End of Apache Rewrite Rules
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>It is the first time I do this and if I'm not doing well, or whether this in the right place, so I come to you.</p>