Forum Discussion

zhaleh_329474's avatar
zhaleh_329474
Icon for Nimbostratus rankNimbostratus
Jul 27, 2018

Http 301 and version Http 1.1

Hello I want to redirect http to https with response status code 301 and http version 1.1 Id rather perform this with policy than irule...if its possible ...and if not how can i use irule in this case? Thanks for help

 

  • This works for me:

    when HTTP_REQUEST {
        HTTP::respond 301 -version 1.1 Location https://[getfield [HTTP::host] : "1"][HTTP::uri]
    }
    
  • zhaleh's avatar
    zhaleh
    Icon for Nimbostratus rankNimbostratus

    Tank you for help me :)))))

     

    Can I have your phone number?