This is code to shorten any url user desires and it should redirect to the orignal url when accessed.