This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WAF - is there a way to put a shortcut to site path routing?

Is there a way to place a shortcut into site path routing that redirects the url to a longer url?

For instance:

https://mywebsite.com/myurl on the reverse proxy would redirect to https://mywebsite.com/myclient/default.aspx?CallType=Process&ProcessName=MyPortal

I know I can reach it if I type that whole url but I want my users to be able to type something shorter eg https://mywebsite.com/myportal

 



This thread was automatically locked due to age.
  • Hi Louis,

    Rewrite HTML (optional): Select this option to have the UTM rewrite links of the returned web pages in order for the links to stay valid. Example: One of your real web server instances has the hostname yourcompany.local but the virtual webserver's hostname on the UTM isyourcompany.com. Thus, absolute links like <a href="http://yourcompany.local/"> will be broken if the link is not rewritten to <a href="http://yourcompany.com/"> before delivery to the client. However, you do not need to enable this option if eitheryourcompany.com is configured on your web server or if internal links on your web pages are always realized as relative links. It is recommended to use the option with Microsoft's Outlook Web Access and/or Sharepoint Portal Server.

    Note – It is likely that some links cannot be rewritten correctly and are therefore rendered invalid. Ask your website author(s) to format links consistently.

    Apart from URL rewriting, the HTML rewriting feature also fixes malformed HTML, for example:

    • <title> tags are moved in DOM tree from node html > title to correct html > head > title
    • Quotes around HTML attribute values are fixed (e.g., name="value becomes name="value")

    Note – HTML rewriting affects all files with a HTTP content type of text/* or *xml*, where * is a wildcard. Make sure that other file types, e.g. binary files, have the correct HTTP content type, otherwise they may get corrupted by the HTML rewriting feature.

    Cross Reference – Please see the libxml documentation for further information (http://xmlsoft.org/html/libxml-HTMLparser.html).

    Rewrite Cookie (optional, only visible if Rewrite HTML is enabled): Select this option to have the UTM rewrite cookies of the returned webpages.

    Note – If Rewrite HTML is disabled the Rewrite Cookie option will be also disabled.

    Taken from Sophos help.

    Any help with that?

    Sachin Gurung
    Team Lead | Sophos Technical Support
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • Hi,

    this is not possible at the moment.
    But we will have a new feature for WAF in 9.5 called 'Request Redirection' where you can configure your setup or even redirect to a complete different host.

    Best,
     Sabine

  • Wow.... very quick answers indeed. Both very good and looking forward to 9.5 when that arrives.