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]
11 # Close loophole in security restriction/exception below
12 RewriteRule ^.*/.*wfpl_main.php$ /error_404 [L,R]
14 <FilesMatch "\.(css|jpg|png)$">
16 ExpiresDefault A31536000
19 # SECURITY: don't execute code on the server (exception below)
21 SetHandler default-handler
22 # this option is needed for RewriteRule to work:
23 Options SymlinksIfOwnerMatch
25 RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
26 # Exception: allow access to wfpl_main.php
28 # this allows access to any files named "wfpl_main.php" anywhere, so there's a
29 # rewrite rule above to use the top-level one, no matter which was requested.
30 <Files "wfpl_main.php">
32 SetHandler application/x-httpd-php