T
T
topuserman2020-05-25 19:34:16
htaccess
topuserman, 2020-05-25 19:34:16

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>

What do I need to do so that in one of the subdirectories, these conditions are not met?

For example, to run scripts in the /upload/script/ directory as usual.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question