How to redirect to login page when user not loggedin on a particular page

In my plugin there are many pages. I want to redirect to a login page if the user is not loggedin on a particular page. I used below code, but it redirect to login page on all pages. I want to specific page only.