Rewrite: As name suggest in rewriting we are rewriting complete URL.Routing: In this URL will be written on the basis of routing pattern.