Htaccess: Difference between revisions

From Server STB
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
Deny from all
Deny from all
</FilesMatch>
</FilesMatch>
# Contoh 3
<Directory "/var/www/html/info/">
    <FilesMatch "\.(php)$">
        Order Deny,Allow
        Deny from all
    </FilesMatch>
</Directory>

Revision as of 03:29, 20 September 2023

  1. Contoh 1

<Directory /var/www/html/wp-content/uploads/>

    php_admin_value engine Off

</Directory>

  1. Contoh 2

<FilesMatch "\.(php)$"> Order Deny,Allow Deny from all </FilesMatch>

  1. Contoh 3

<Directory "/var/www/html/info/">

   <FilesMatch "\.(php)$">
       Order Deny,Allow
       Deny from all
   </FilesMatch>

</Directory>