Forum Discussion

nbresto's avatar
Icon for Nimbostratus rankNimbostratus
Dec 01, 2023

F5 LTM Vanity URL Rewrite

Hi all,

Pretty new to F5 and have taken over management of a pair. I am having trouble updating some rewrite vanity urls.

I need users to be able to put in the URL "" and for the URL to stay the same but for the page to show contents from an external website of "".


Currently we have this iRule in place:
             HTTP::header replace "Host" ""
             HTTP::header insert "X-Forwarded-Host" ""
             HTTP::uri "/example[HTTP::uri]"


When I try to update the iRule I change the "" with "" and update the HTTP:uri with "/example[HTTP::uri]" with "/test[HTTP::uri]" but when I then go to "" I get the following error:
"Not found. HTTP Error 404. The requested resource is not found."

Just looking for some advice on where I'm possibly going wrong, stuff I need to be aware of or if someone can point me in the right direct.

Appreciate any info. Thanks.

8 Replies