From: Jason Woofenden Date: Thu, 27 Aug 2015 19:20:50 +0000 (-0400) Subject: don't display php code X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=commitdiff_plain;h=0fe7d3a2caae8d256406209020ee8a160cc04faf don't display php code --- 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