Skip to content

Instantly share code, notes, and snippets.

@kurudrive
Created November 23, 2014 14:25
Show Gist options
  • Save kurudrive/ce304c3aae275a2662c7 to your computer and use it in GitHub Desktop.
Save kurudrive/ce304c3aae275a2662c7 to your computer and use it in GitHub Desktop.
WordPressの管理画面のBASIC認証
AuthType Basic
AuthUserFile /*サーバーのパス*/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password"
Require valid-user
<FilesMatch "(admin-ajax.php)$">
Satisfy Any
Order allow,deny
Allow from all
Deny from none
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment