locked
ISA 2006:Link Translation: Replace Part of path with nothing RRS feed

  • Question

  • Hey all,

    We have a website: www.site.com which maps to an internal site internal.site.com. Also we have modified the path to /* -> /folder/*

    Having the link translation feature enabled, and by viewing the link translation table we can see that IF the returning HTML contains http://internal.site.com/folder this will be replace with http://www.site.com

    However we are seeing HTML returned which contains some code like <script="/folder/scriptresource.axd?aze232LKJ22LJ">. This kinda makes sense as the string /folder does not matches anything in the link translation table.

    For this to work we would have to add "replace /folder with """ ("" = nothing). Is this technically possible? We tried using an other dummy string, and that gets replace succesfully. We also tried "replace /foldere with /" but that seemed to be ignored.

    Any advice?

    Thanks in advance!


    http://setspn.blogspot.com
    Wednesday, September 14, 2011 12:25 PM

Answers

  • Hi Thomas,

    the TMG link-translation isn't restricted to just replace links.  Basically you could replace any plaintext string you want withon your published web sites. This ability enables you to include some additional chars of the preceding or succeeding HTML code (e.g. replace  ="/folder  with  ="/  ).

    -Kai


    This posting is provided "AS IS" whithout any warranties. Kai Wilke | ITaCS GmbH | GERMANY, Berlin | www.itacs.de
    Wednesday, September 14, 2011 9:06 PM

All replies

  • Hi,

    i dont think this can be done using link translation in isa/tmg, because there is no replacement char for "nothing". It sounds more like an UAG based solution.

    Cheers,

    Andreas


    Andreas Hecker - Blog: http://microsoft-iag.blogspot.com/ Please remember to use “Mark as Answer” or "vote as helpful" on the posts that help you.
    Wednesday, September 14, 2011 12:45 PM
  • Hi Thomas,

    the TMG link-translation isn't restricted to just replace links.  Basically you could replace any plaintext string you want withon your published web sites. This ability enables you to include some additional chars of the preceding or succeeding HTML code (e.g. replace  ="/folder  with  ="/  ).

    -Kai


    This posting is provided "AS IS" whithout any warranties. Kai Wilke | ITaCS GmbH | GERMANY, Berlin | www.itacs.de
    Wednesday, September 14, 2011 9:06 PM
  • Could you try /. ? 

    foo/./bar is equivalent to foo/bar

    Wednesday, September 14, 2011 11:15 PM
  • Thanks Kai and f3rrix. In the end a small variation did the trick. They replace "/www.customer.com with "

    Wrote up a bit for future reference: ISA 2006/TMG 2010 Link Translation: Replace Something With Nothing


    http://setspn.blogspot.com
    Monday, September 19, 2011 5:59 PM