from www.test.com to https://devcentral.f5.com
Local Traffic
Policies
Policy List
1.Create Policy
Name: redirect_policy
Strategy: first-match
Requires: http
Controls: forwarding
2.Add a rule
Rule name: redirect
Action
Target: http-reply
Event: request*
Action: redirect
Parameters:
Name: Location*
Value: https://devcentral.f5.com
Virtual Servers
Virtual Server List
Select Virtual server from the list
Resources tab
Under Policies click Manage
Move redirect_policy from available to enabled
FINISHED