How to redirect on User based? I am new to drupal So
I want to redirect the user based on login 
Say,
if there is an Anonymous user, he will be redirected to specific page,
and if is an Authorized user along with login id and password, then he will be redirected to other specific page using script
Use Rules module and create redirect rules.

Project page says 


  The Rules module allows site administrators to define conditionally
  executed actions based on occurring events (known as reactive or ECA
  rules).


Example use cases


Build flexible content publishing workflows changes 
Send customized mails to notify your users about important 
Create custom redirections, system messages, breadcrumbs, ... 
Build an eCommerce store using Drupal Commerce And many more...