Forum Discussion
Brad_146558
Nimbostratus
Mar 20, 2015Trouble with redirect
I'm trying to write a redirect from the root level of a domain(ex domain.com), to www.domain.com. I know the best and easiest way would be to just put a redirect on the web server, but as sane as tha...
Victor_142239
Nimbostratus
Mar 20, 2015Should it not be [HTTP::host] instead of [HTTP::path]?
- Brad_146558Mar 20, 2015
Nimbostratus
You are right, I've updated the iRule with host and it still seems unhappy about something in the redirect. when HTTP_REQUEST { if { [HTTP::host] equals "http://domain.com" } { HTTP::redirect "http://www.domain.com" } }
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