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]"
       }
    }