In this video we will see how we can write rewrites for routes in Nextjs by editing the nextjs config file. We will write rewrites by simple path matching, nested path matching, regex path matching and finally matching paths by checking query params using the has property