Forum Discussion
Anatolyint
Nimbostratus
Apr 08, 2021F5 IRULE Replace path with subdomain
Hello, I need to make an irule to replace HTTP::path with Subdomain, like this: http://domain.com/PATH/blahblah ===>> http://PATH.domain/blahblah The path is dyn...
spalande
Nacreous
Apr 08, 2021when HTTP_REQUEST {
set path [lindex [split [string tolower [HTTP::uri]] "/"] 1]
set uri [string map -nocase "/$path/ /" [HTTP::uri] ]
HTTP::respond 301 Location "https://$path.domain.com$uri"
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects