Last active
April 7, 2018 08:44
-
-
Save kaoru-fukusato/b5b23ac2682ff72aa6311d503c343d17 to your computer and use it in GitHub Desktop.
Basic認証の設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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