Application Delivery (ADX)

Reply
New Contributor
Posts: 2
Registered: ‎02-11-2011

Create a HTTPS 301 Redirect

I'm currently using an HTTP to HTTPS redirect, but the response header is 302.  Is there a way to make the an HTTP to HTTPS redirect that returns a 301 response header? 

Thanks.

Super Contributor
Posts: 1,087
Registered: ‎12-13-2009

Re: Create a HTTPS 301 Redirect

Hi J,

     It will depend on what product youe have, if ADX then all good, if not then the answer is no.

HTTP redirect status code

Prior to release 11.0.00, ServerIron ADX uses status code 302 with redirect messages. The code 302 indicates a temporary move. Beginning with release 11.0.00, ServerIron ADX can be configured to use status code 301, which indicates permenant move, to suit different application requirements.

301 - to redirect the HTTP request to a new, assigned permanent URI.

302 (the default) - to redirect HTTP requests to a temporary URI.

To redirect an HTTP request with redirect code 301, entre the following command.

ServerIronADX(config)#csw-policy p1

ServerIronADX(config-csw-p1)#match r1 redirect "fdry.com" HTTP 301

Thanks

Michael.

Super Contributor
Posts: 1,087
Registered: ‎12-13-2009

Re: Create a HTTPS 301 Redirect

Hi jthomas2

     Did this answer your question?

New Contributor
Posts: 2
Registered: ‎02-11-2011

Re: Create a HTTPS 301 Redirect

Partially: how do I incorporate the 301 redirect with the SSL redirect? 

Thanks for the quick response.

Super Contributor
Posts: 1,087
Registered: ‎12-13-2009

Re: Create a HTTPS 301 Redirect

Hi jthomas2

I beleive you do the following

ServerIronADX(config)#csw-policy p1

ServerIronADX(config-csw-p1)#match r1 redirect "fdry.com" 443 301

For infomation below.

Configuring the redirect action

The redirect action causes the ServerIron ADX to redirect a request to an alternate domain, URL,

port, or Uniform Resource Identifier (URI) when the specified rule is matched.

For example, the following command causes the ServerIron ADX to redirect a request to the domain

fdry.com, URL

/home/index.html, and port 8080 when rule r1 is matched.

ServerIronADX(config-csw-policy1)#match r1 redirect "fdry.com" "/home/index.html"

8080

Syntax: match

<rule-name> redirect <domain> | ]

The <rule-name> variable can be up to 80 characters in length.

The <domain> variable can be up to 255 characters. 

The <url> variable can be up to 255 characaters.

You can optionally specify

* (asterisk) for either the <domain> or <url>. When you do this, the

redirected request uses the same domain or URL as in the original request.

For the <port> parameter, you can enter any well-known port name or port number. For

<status-code>, enter any three-digit status code.

For <url> <new-port>, enter the new URL and port number to which the request will be redirected.

Super Contributor
Posts: 1,087
Registered: ‎12-13-2009

Re: Create a HTTPS 301 Redirect

Hi jthomas2,

     Did you get this resolved?

Thanks

Michael.

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.