# URL switching and diferent persistence

**URL:** https://community.a10networks.com/t/url-switching-and-diferent-persistence/553
**Category:** ADC - Application Delivery
**Created:** [February 13, 2019, 9:28am UTC](https://community.a10networks.com/t/url-switching-and-diferent-persistence/553 "2019-02-13T09:28:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![undergl](https://avatars.discourse-cdn.com/v4/letter/u/35a633/32.png) [@undergl](https://community.a10networks.com/u/undergl)
#### Post date: [February 13, 2019, 9:28am UTC](https://community.a10networks.com/t/url-switching-and-diferent-persistence/553/1 "2019-02-13T09:28:43Z")

</div>

Hi, It’s possible to assign different persistence in an URL switching deployment?

Backend

[http://server1:8080/site1](http://server1:8080/site1) [http://server1:8080/site2](http://server1:8080/site2)

Service group slb service-group sg-app tcp method least-connection member server1 8080 member server2 8080

2 services are in the same SG,

Whe user access the VIP, it’s possible to apply different persistence using URL switching? [XXXX](http://xxxx.com/site1) → source ip [XXXX](http://xxxx.com/site2) → no persistence or cookie

Thanks

---

<div class="post-metadata">

### Author: ![jserrano](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jserrano](https://community.a10networks.com/u/jserrano)
#### Post date: [October 30, 2019, 1:36pm UTC](https://community.a10networks.com/t/url-switching-and-diferent-persistence/553/2 "2019-10-30T13:36:19Z")

</div>

Hi,  
Just try using assiciating following aflex logic without adding any persistency template at service level:  
when HTTP\_REQUEST {  
if {[HTTP:uri] starts\_with “/site1”} {  
persist uie [IP::Client\_addr]  
}  
}  
Regards
