Site icon Hip-Hop Website Design and Development

Redirect when not logged and parametr in link

how do I redirect to ‘domain.com/sub’ for unlogged users, when the url is without the "one_time_login" parameter?
This should not work when a user is trying to login via sub.domain.com/wp-admin.
Have no idea. I understand that htaccess cant make this?
Thanks for your help!