Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function redirect_to_new_site()
- {
- if ( !is_main_site() || is_admin() || is_user_logged_in() || $GLOBALS['pagenow'] === 'wp-login.php' ) {
- return;
- } else {
- exit( wp_redirect( 'http://engineering.utm.my/mechanical/', 301 ) );
- }
- }
- add_action( 'init', 'redirect_to_new_site' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement