Forum Discussion

Brian_Kenworthy's avatar
Icon for Nimbostratus rankNimbostratus
Feb 10, 2011

HTTP>HTTPS Redirect to different domain

Hi all, this should be pretty simple....hopefully.



I have a simple HTTP>HTTPS redirect in place for a domain --> HTTP::redirect "https://[HTTP::host][HTTP::uri]"



We have several subdomains (~15),, etc. What we would like to do now is redirect those same sub domains to a new domain: to to to



Is there any easier way to do this besides using a switch command for ever sub domain? I.E.





switch [HTTP::host] { {


HTTP::redirect ""


} {


HTTP::redirect ""







Thanks in advance for the help!

13 Replies