OK now It's working perfect for the /subdirectories but however I am trying to do another layer of subdirectories and its failing.
I have :
www.mycompany.com/subdir1/subdir2 which I am trying to redirect to www.someothercompany.com . It works up to www.mycompany.com/subdir1 level but fails over when I tried to use for subdir2 level.
I believe these are the lines which makes it fail:
if {[substr $clientside 0 1] eq "/"} {
No virtual hostname specified, so use the Host header instead
set host_clientside $orig_host
set path_clientside $clientside
} else {
Virtual host specified in entry, split the host and path
set host_clientside [getfield $clientside "/" 1]
set path_clientside [substr $clientside [string length $host_clientside]]
Any ideas on how I can deal with these double "/subdir1/subdir2/" slashes issue ??