Forum Discussion

Grayson_149410's avatar
Grayson_149410
Icon for Nimbostratus rankNimbostratus
Jan 22, 2015

iRule 301 Redirect using Wildcard

We are currently running Sharepoint to host our public website. When the user types in www.company.com the URL gets updated to www.company.com/Pages/Home.aspx. This also applies to all other sites...
  • Brad_Parker_139's avatar
    Jan 22, 2015

    How about this?

    when HTTP_RESPONSE {
        if {[HTTP::status] == 302}{
            HTTP::respond 301 Location "[string tolower [HTTP::header Location]]"
        }
    }