Forum Discussion

jma_44485's avatar
jma_44485
Icon for Nimbostratus rankNimbostratus
Jan 28, 2010

question about redirect irule

I have an URL like

 

 

http://example.com/test.aspx?data=abcdefg1234567

 

 

Can I redirect it to https

 

 

https://example.com/test.aspx?data=abcdefg1234567

 

 

Any suggestion is really appreciated.

 

 

Thanks

1 Reply

  • Sure:

     

     

    HTTPToHTTPSRedirect_301 - Redirects all traffic to same hostname, same URI over https by issuing a redirect with status 301 (Moved Permanently).

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/HTTPToHTTPSRedirect_301.html

     

     

    HTTPToHTTPSRedirect_302 - Redirects all traffic to same hostname, same URI over https by issuing a redirect with status 302 (Moved Temporarily).

     

    http://devcentral.f5.com/Wiki/default.aspx/iRules/HTTPToHTTPSRedirect_302.html

     

     

    Aaron