title: .htaccess modified hiding url php make my input submit doesn't work
body: <p>I have modified my .htaccess file to hide the ending <code>.php</code> extension of the URLs, but it breaks my input submit button so login doesn't work anymore with my username and password. What's wrong with my <code>.htaccess</code> file or my php file input submit button ??</p>
  
  <p>This is the code for my <code>.htaccess</code> file</p>
  
  <pre><code>Options +FollowSymLinks -MultiViews
  # Turn mod_rewrite on
  RewriteEngine On
  RewriteBase /
  
  ## don't touch /forum URIs
  RewriteRule ^forums/ - [L,NC]
  
  ## hide .php extension snippet
  
  # To externally redirect /dir/foo.php to /dir/foo
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
  RewriteRule ^ %1 [R,L]
  
  # To internally forward /dir/foo to /dir/foo.php
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.*?)/?$ $1.php [L]
  </code></pre>