php_value auto_prepend_file header.php
php_value auto_append_file footer.php

<Files test.php>
  php_value auto_prepend_file none
  php_value auto_append_file none
</Files>

<Files index.php>
  php_value auto_prepend_file none
  php_value auto_append_file none
</Files>

<Files submit.php>
  php_value auto_append_file none
</Files>


DirectoryIndex index.php submit.php

RedirectMatch /(.*)/form.* /$1/index.php

