title: ForceType/htaccess file extension question - extensionless files?
body: <p>This is my .htaccess file:</p>
  
  <pre><code>&lt;IfModule php4/5.c&gt;
  php_admin_flag Option
  php_flag Option
  php_admin_value Option
  php_value Option
  &lt;/IfModule&gt;  
  &lt;Files .&gt;
  ForceType application/x-httpd-php
  SetHandler application/x-httpd-php
  &lt;/Files&gt;
  </code></pre>
  
  <p>The above code somehow works, but I'm not sure why though... I expected a 500 error. I'm OK at .htaccess, but mainly for things like blocking robots/spiders etc. rather than filetypes. The top of the file is meant for custom php.ini files (I was trying to replicate on my own Apache server as if I had no access to the proper php.ini file, like they do on web hosting companies' sites, just for added realism on my testing sites).</p>
  
  <p>Although I understand how to use ForceType and SetHandler, I'm not sure how to use it for extensionless files (e.g. if I had a file called testing1, I could run it as php).</p>
  
  <p>Previously I did it this way:</p>
  
  <pre><code>&lt;Files testing1&gt;
  ForceType application/x-httpd-php
  SetHandler application/x-httpd-php
  &lt;/Files&gt;
  </code></pre>
  
  <p>but it became tedious doing it for every single extensionless file.</p>
  
  <p>Basically, what I'm trying to do is to ensure that I have extensionless files via the ForceType/SetHandler directives, but is it possible? (and is the symbol above in my first example the wildcard one, or not?)</p>
  
  <p>Thanks</p>