[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-URLRewrite) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::URLRewrite.\n\nThe specification for modifying the URL of the request, prior to forwarding\nthe request to the destination. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #host_rewrite\n\n def host_rewrite() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.\n\n### #host_rewrite=\n\n def host_rewrite=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value. \n**Returns**\n\n- (::String) --- Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.\n\n### #path_prefix_rewrite\n\n def path_prefix_rewrite() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.\n\n### #path_prefix_rewrite=\n\n def path_prefix_rewrite=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value. \n**Returns**\n\n- (::String) --- Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value."]]