Enable rewrite engine

This commit is contained in:
Helen Chong 2024-08-20 00:25:02 +08:00
parent 1e3ccd552f
commit 9f8fd59873
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ Header set Cache-Control "max-age=31536000, public"
Header set Cache-Control "no-cache, public"
</FilesMatch>
RewriteEngine on
# Block bad bots
RewriteCond %{HTTP_USER_AGENT} (Amazonbot) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (Applebot) [NC,OR]