How do I change assigned redirect url to drupal root url?
Fixed.........
You just have to reset the base url ($base_url = 'http://www.example.com';) in your main settings.php file to whatever your desired url is and refresh the page... It should work fine afterwards. 

Thanks anyways.