htaccess make exception rule help

[ad_1]

Hello everyone,

hope you can help, i need to make an exception to a rule in my htaccess file which basically blocks all files that end with certain extension, i need to allow one to be avaiable for download, i have this generic rule applied:

*<FilesMatch “\\.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$”>*

*Require all denied*

*</FilesMatch>*

&#x200B;

I need a specific “exe” file to be avaiable for download, how can i make an exception to this without removing the “exe” from the list above? (because if i do, it works)

Thanks in advance

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer