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 ^(wfpl_main\.php|paypal_ipn\.php|cms_images_autoresize\.php)$ - [L]
27 RewriteRule .*\.php$ - [L,R=404]
28 <Files "wfpl_main.php">
30 SetHandler application/x-httpd-php
32 <Files "paypal_ipn.php">
34 SetHandler application/x-httpd-php
36 <Files "cms_images_autoresize.php">
38 SetHandler application/x-httpd-php
40 RewriteCond %{REQUEST_FILENAME} !-f
41 RewriteRule ^cms_images/[0-9a-f]+w[0-9]+\.[pj][np]g$ /cms_images_autoresize.php