Codex tools: Log in / create account
Contents |
Redirects the user to a specified absolute URI.
<?php wp_redirect($location, $status); ?>
<?php wp_redirect(get_option('siteurl') . '/wp-login.php'); ?>
Redirects can also be external, and/or use a "Moved Permanently" code :
<?php wp_redirect('http://www.example.com', 301); ?>