---title: excerpt: ---import Tabs from @theme/Tabs;import TabItem from @theme/TabItem;The <Redirect>
verb transfers control from the current document to another. It is effectively an exit statement from the current document, as there is no way to return to any instructions listed after the <Redirect>
verb.An example message that redirects next XML instruction to another document:xml
https://your-application.com/next-instructionsjsconst { RestClient } = require(@signalwire/compatibility-api);const response = new RestClient.LaML.VoiceResponse();response.redirect(https://your-application.com/next-instructions);console.log(response.toString());php
http://www.somesite.com/NextDoc.xmljsconst { RestClient } = require(@signalwire/compatibility-api);const response = new RestClient.LaML.VoiceResponse();response.redirect(http://www.somesite.com/NextDoc.xml);console.log(response.toString());php<?php use SignalWire\LaML; $response = new LaML; $response->redirect(http://www.somesite.com/NextDoc.xml); echo $response;?>csharpusing Twilio.TwiML;using System;class Example{ static void Main() { var response = new VoiceResponse(); response.Redirect(new Uri(http://www.somesite.com/NextDoc.xml)); Console.WriteLine(response.ToString());; }}pythonfrom signalwire.voice_response import Redirect, VoiceResponseresponse = VoiceResponse()response.redirect(http://www.somesite.com/NextDoc.xml)print(response)rubyrequire signalwire/sdkresponse = Signalwire::Sdk::VoiceResponse.new do |response| response.redirect(http://www.somesite.com/NextDoc.xml)endputs response.to_sTo continue processing this message using the instructions in another document, specify the absolute URL of that document as the noun to the verb.