if ( !is_user_logged_in() ) { $url_uri = $_SERVER['REQUEST_URI']; //redirect shop page. if ( $url_uri == 'https://www.fashionfuse.net/?page_id=2324/' ) { wp_redirect( home_url( 'https://www.fashionfuse.net/product-category/gallery/' ) ); } }