designのブログ -2ページ目

designのブログ

ブログの説明を入力します。

Basic認証「.htaccess」
オンライン
http://www.htaccesseditor.com/

↑これの使い方
http://daredemopc.blog51.fc2.com/blog-entry-139.html

制限したいフォルダ内にupして
パーミッション604
パスワードを設定するプラグイン
Angsuman's Authenticated WordPress Plugin

http://tech.gaeatimes.com/index.php/archive/angsumans-authenticated-wordpress-plugin-password-protection-for-your-wordpress-blog/



このプラグインの設定方法
http://webdirector.livedoor.biz/archives/52490079.html

   有効化する前に現バージョンに対応させるためプログラムを書き換えておきます。
「プラグイン」→「プラグイン編集」からプルダウンメニューで「Angsuman's Authenticated WordPress Plugin」をを選択して、
function ac_auth_redirect() {
// Checks if a user is logged in, if not redirects them to the login page
if ( (!empty($_COOKIE[USER_COOKIE]) &&
!wp_login($_COOKIE[USER_COOKIE], $_COOKIE[PASS_COOKIE], true)) ||
(empty($_COOKIE[USER_COOKIE])) ) {
nocache_headers();

となっている部分を



function ac_auth_redirect() {
if ( !is_user_logged_in() ){
nocache_headers();