F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Dave_Wu_20200's avatar
Dave_Wu_20200
Icon for Nimbostratus rankNimbostratus
Oct 24, 2011

Removing Dot from URL

Hi Guys,

 

 

I am new in iRule and would need help on the following.

 

 

is accessable even by keying in

 

 

Is there anyway to remove the . statically?

 

 

Thanks

1 Reply

  • can you try this?

    when HTTP_REQUEST {
       if {[HTTP::host] ends_with "."} {
          HTTP::redirect "http://[string trimright [HTTP::host] "."][HTTP::uri]"
       }
    }