Forum Discussion

Rodrihe's avatar
Rodrihe
Icon for Altocumulus rankAltocumulus
Mar 01, 2019

Forward with specific URI to pool without changing URL

Hi, DevCentral community! I've been checking the forum and trying different answers from the community for other requests, but I haven't been able to do what I need to do, this is the scenario: ...
  • Michael_Saleem1's avatar
    Mar 01, 2019

    Hi,

    Instead of using an iRule, have you tried looking at using a rewrite profile instead?

    Something like this? (this rewrites http://abc.com to http://abc.com/xyz-xyz/)

    tmsh create ltm profile rewrite REWRITE rewrite-mode uri-translation uri-rules add { abc.com { type request client { scheme http host abc.com path / } server { path /xyz-xyz/ } } }

    tmsh modify ltm virtual  profiles add { REWRITE }

    • Note: You will need to make sure that there is an HTTP profile applied to the virtual server