Answer the question
In order to leave comments, you need to log in
How to make scripts run in a folder?
We have a /upload/ folder on our site where scripts are not executed, but simply go for downloading.
As I understand it, the execution of files restricts the .htaccess file which lies at the root of the /upload/ folder with the following content:
<IfModule mod_mime.c>
<Files ~ \.(php|php3|php4|php5|php6|phtml|pl|asp|aspx|cgi|dll|exe|shtm|shtml|fcg|fcgi|fpl|asmx|pht|py|psp|rb|var)>
SetHandler text/plain
ForceType text/plain
</Files>
</IfModule>
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question