# Create Rewrite

**URL:** <https://community.a10networks.com/t/create-rewrite/812>\
**Category:** aFleX\
**Created:** [October 12, 2023, 10:21pm UTC](https://community.a10networks.com/t/create-rewrite/812 "2023-10-12T22:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigosh](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rodrigosh](https://community.a10networks.com/u/rodrigosh)\
**Post date:** [October 12, 2023, 10:21pm UTC](https://community.a10networks.com/t/create-rewrite/812/1 "2023-10-12T22:21:52Z")

</div>

Dear, I need your help to create an aFlex with a rewrite that does the following: [sucusales.mydomain.com](http://sucusales.mydomain.com) to [chile.localisti.co](http://chile.localisti.co)  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![john\_allen](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@john\_allen](https://community.a10networks.com/u/john_allen)\
**Post date:** [October 13, 2023, 11:56pm UTC](https://community.a10networks.com/t/create-rewrite/812/2 "2023-10-13T23:56:48Z")

</div>

Like this:  
when HTTP\_REQUEST {  
if { ([HTTP:host] eq “[sucusales.mydomain.com](http://sucusales.mydomain.com)”) {  
HTTP:redirect “[https://chile.localisti.com](https://chile.localisti.com)”  
}  
}
