From 0fe7d3a2caae8d256406209020ee8a160cc04faf Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 27 Aug 2015 15:20:50 -0400 Subject: [PATCH] don't display php code --- .htaccess | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 3847e70..1c77df3 100644 --- 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 # 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] php_flag engine on SetHandler application/x-httpd-php -- 1.7.10.4