Brand LogoSkip to content
Forums
CrowdSRC
Articles
Groups
EventsSuggestions
RegisterSign In
  1. DevCentral
  2. Forums
  3. Technical Forum

Forum Discussion

Andrea_Arquint's avatar
Andrea_Arquint
Icon for Nimbostratus rankNimbostratus
Oct 21, 2010

How to replace the hostname from a FQDN in HTTP:HOST

Hi

 

 

How is it possible to replace only the hostname within an irule?

 

 

 

Example:

 

 

 

Client requests www.trustme.com so [HTTP:Host] contains this name.

 

How can I replace only the "www" with "www2" and response

 

www2.trustme.com to the client?

 

 

 

Many thanx

 

bb

 

application delivery
dev
devops
iRules

Recent Discussions

  • Sync-failover group doesn't sync properly
    Solved
    Oct 17, 2024
    Ovov
  • Outlook for mobile doesn't via APM doesn't work with Modern Authenication
    Oct 17, 2024
    Majed
  • F5OS download backup via API
    Oct 17, 2024
    Zdenek
  • Problems with ping dropped packets
    Oct 17, 2024
    SanYang
  • Using the WAF instead of a jump server for ssh-tunneling?
    Oct 17, 2024
    Werso
Related Content
  • ADFS Proxy Replacement on F5 BIG-IP
    Mar 13, 2018
    Graham_Alderso1
  • string first replacement procedure for ID999881
    Nov 10, 2022
    PeteWhite
  • irule url host replacement
    Jun 12, 2023
    Fernando_M
  • F5 GTM GSLB replacement
    Feb 12, 2024
    cathy_123
  • Rewrite HTTP Redirect Hostname
    Mar 18, 2015
    Deb_Allen_18