Redirecting Sites

Hi friends,
I want to redirect my Worker to an URL. My worker url is (www.example.de) which should be redirect the request to an other url (app2.example.de).

I am new and facing issues to redirect it. Please help me to do this, Thanks in advance

There is a good example for this in the Workers documentation.


(I recommend using the second one though)