1 php_value post_max_size 25M
2 php_value upload_max_filesize 20M
3 php_flag register_globals off
4 php_flag magic_quotes_gpc off
6 DirectoryIndex disabled
7 AddDefaultCharset UTF-8
10 RewriteRule ^[^/.]*$ /wfpl_main.php [L]
12 <FilesMatch "\.(css|jpg|png)$">
14 ExpiresDefault A31536000
17 # SECURITY: don't execute code on the server (exception below)
19 SetHandler default-handler
20 # this option is needed for RewriteRule to work:
21 Options SymlinksIfOwnerMatch
23 RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
24 # code execution exception: allow only /wfpl_main.php
25 # <Files> matches regardless of directory/path, so rewrite php in subdirs
26 RewriteRule ^.*/.*\.php$ - [L,R=404]
27 <Files "wfpl_main.php">
29 SetHandler application/x-httpd-php