Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e5aca
)
don't display php code
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 27 Aug 2015 19:20:50 +0000
(15:20 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 27 Aug 2015 19:20:50 +0000
(15:20 -0400)
.htaccess
patch
|
blob
|
history
diff --git
a/.htaccess
b/.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