# Apply these rules specifically to the xmlrpc.php file
# Define the order of access rules: deny first, then allow
Order Deny,Allow
# Deny all external access to the file
Deny from all
RedirectMatch 404 \.git
RedirectMatch 404 \.gitignore
RedirectMatch 404 package-lock.json
RedirectMatch 404 package.json
RedirectMatch 404 \/wp-json
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
#RewriteRule ^category/(.+)$ https://edm.aiacademy.tw/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
# 2019.3.23 For enter_logs/holiday/admin/review_holiday.php can sendmail, we disable this block.
#
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#