Forum Discussion

spraycj_86914's avatar
spraycj_86914
Icon for Nimbostratus rankNimbostratus
Sep 01, 2011

HTTP class profiles and redirect

Is there a way with HTTP class profiles to do this type of redirection, or do I need to use iRules?

 

 

I want requests coming for both http://www.host.something.com and http://host.something.com to redirect to https://host.something.com.

 

 

My current class profile just has a redirect that looks like this:

 

 

https://[HTTP::host][HTTP::uri]

 

 

The problem is if a request comes in for http://www.host.something.com, it redirects to https://www.host.something.com. The servers in the pool don't expect www, and the request fails.

 

 

I thought that maybe having the redirect set to https://host.something.com/[HTTP::uri] might work, but wasn't sure.

 

 

 

Thanks!