JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't display php code
authorJason Woofenden <jason@jasonwoof.com>
Thu, 27 Aug 2015 19:20:50 +0000 (15:20 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 27 Aug 2015 19:20:50 +0000 (15:20 -0400)
.htaccess

index 3847e70..1c77df3 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -23,7 +23,8 @@ php_flag engine off
 RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo
 # code execution exception: allow only /wfpl_main.php
 # <Files> matches regardless of directory/path, so rewrite php in subdirs
-RewriteRule ^.*/.*\.php$ - [L,R=404]
+RewriteRule ^wfpl_main\.php$  - [L]
+RewriteRule .*\.php$ - [L,R=404]
 <Files "wfpl_main.php">
        php_flag engine on
        SetHandler application/x-httpd-php