# 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
deny from 167.179.88.67
RedirectMatch 404 \.git
RedirectMatch 404 \.gitignore
RedirectMatch 404 package-lock.json
RedirectMatch 404 package.json
#RedirectMatch 404 \/wp-json
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^class\.aiacademy\.tw [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]