name ) === $this->value; if ( $this->regex ) { $regex = new Red_Regex( $this->value, true ); $matched = $regex->is_match( Redirection_Request::get_cookie( $this->name ) ); } // Check if referrer matches if ( $matched && $this->url_from !== '' ) { $target = $this->url_from; } elseif ( ! $matched && $this->url_notfrom !== '' ) { $target = $this->url_notfrom; } if ( $flags->is_regex() && $target ) { $target = $this->get_target_regex_url( $source_url, $target, $requested_url, $flags ); } return $target; } }