> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Redirect to another domain > Send every request to a different domain with Response.redirect. This script redirects all incoming requests to one URL with a permanent redirect (HTTP status code 301). ```ts theme={null} import * as BunnySDK from "@bunny.net/edgescript-sdk"; BunnySDK.net.http.serve( async (request: Request): Response | Promise => { const destinationURL = "https://example.com"; const statusCode = 301; return Response.redirect(destinationURL, statusCode); }, ); ``` This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.