Forum Discussion

Ingo_37166's avatar
Ingo_37166
Icon for Nimbostratus rankNimbostratus
Apr 02, 2008

manipulate url displayed in browser

Hello guys,

 

 

i am prety new to all this stuff, so here is my newbie question. [Smile]

 

 

I want the users browser to allways display the same and not the full url.

 

Example: at the moment the browser displays http://www.test.com/irj/stuff/blabla

 

 

I want to remove the "irj/stuff/blabla" - so the user can not see in what path etc. the application is running.

 

 

Is this possible with "HTTP_RESPONSE". I ended up with the code below, but it does not do anything to what the browser displays [Blush]

 

 

Any ideas? Its a Version 9x BigIP !!

 

Thanks, Ingo

 

 

 

 

when HTTP_RESPONSE {

 

set server_location [string tolower [HTTP::header Location]]

 

if {$server_location starts_with "www.test.com/irj/"} {

 

 

HTTP::header replace Location [string map -nocase {www.test.com/irj/stuff/blabla www.test.com} [HTTP::header value Location]]

 

}

 

 

}