#SSL setting SetEnvIf X-Forwarded-PROTO "https" HTTPS=on #order deny,allow #deny from all #self host allow from 149.28.16.132 # Taipei #allow from 118.163.102.67 allow from 61.222.27.93 #me allow from 58.115.17.12 allow from 54.95.188.127 #jerry #allow from 39.11.196.160 allow from 27.147.43.157 #maggie allow from 150.116.181.107 #yating allow from 111.243.9.244 allow from 111.243.5.234 allow from 111.243.1.94 #benjamin allow from 61.223.5.194 RedirectMatch 404 /\.git RedirectMatch 404 \.gitignore RedirectMatch 404 package-lock.json RedirectMatch 404 package.json # RedirectMatch 404 \/wp-json Options -Indexes # 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 # BEGIN WordPress # 在含有 BEGIN WordPress 及 END WordPress 標記的這兩行間的指示詞內容為動態產生, # 且應僅有 WordPress 篩選器能進行修改。對這兩行間任何指示詞內容的變更, # 都會遭到系統覆寫。 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