Skip to content

Instantly share code, notes, and snippets.

@kaoru-fukusato
Last active April 7, 2018 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaoru-fukusato/b5b23ac2682ff72aa6311d503c343d17 to your computer and use it in GitHub Desktop.
Save kaoru-fukusato/b5b23ac2682ff72aa6311d503c343d17 to your computer and use it in GitHub Desktop.
Basic認証の設定
/*wp-login.phpに格納*/
<Files wp-login.php>
AuthUserFile ※ここに「.htpasswd」へのフルパスを記入 例 /var/www/.htpasswd
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
</Files>
/*予約投稿ができないようだったら下記のコードを下に追加*/
<FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.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