1 January 2010 0 Comments

Special Web blog (WordPress) for Personal Use

In case you have some family blog or its content is a little too private, I’ve been looking for a way to redirect anybody who wants to view the blog to a login page. I found an "Authenticator" plugin (link- its in german). Its good to make a little change to the plug-in though, around line 20 I replaced:

header('Location: ' . get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));

with

header('Location: ' . get_option('siteurl') . '/wp-login.php?redirect_to=index.php');<br />

This way it puts the main blog site in front of the user once they are logged in. At the same time I’m allowing people to register themselves (but I get notified). [via Fraking]