Hi, I am looking to redirect, hopefully 301 redirect, from the default domain when called to a new home page location while retaining any appended query in the original URI. I have the following iRule created, which does work, but the query is not retained when redirected. Please help! .
Thank you, this works great. I am going to slightly modify with the following for a 301 redirect. As well, thank you for the information on the limitation of the URI:path prefix in SOL9952. I believe for our application of this iRule, I don’t foresee this as a problem, but will test to be sure.
when HTTP_REQUEST {
if { [URI::path [HTTP::path]] eq “/” and [HTTP::query] ne “”} {
Update; with further testing, we found that there were JavaScript errors generated by new queries being added to the URL when navigating in the site. We’ve further revised the iRule and are testing again to verify conflicts.
when HTTP_REQUEST {
if { [HTTP::path] eq “/” and [HTTP::query] ne “”} {