URL Rewrite for Telligent Analytics

URL Rewrite for Telligent Analytics

  • We are trying to install Telligent Analytics 3.7 hotfix (3.7.342.29882).  We are having an issue with our URL rewriting rule.  When users try to filter the analytics data by group by using the group filter, the URL is as follow:

    https://[host_name]/default.aspx/1/123default.aspx

    For some reason, it doesn't insert the "/" after 123 (which is the group ID).  We copied the rewrite rules from Telligent Community.  We were expecting the"/" character to be inserted before the "default.aspx".

  • Can you paste your rules?  If analytics is installed to a subdirectory rather than a subdomain, can you also include your community rewrite rules?

  • We host it at a subdomain:

       <rule name="Ignore REST API from Redirects" enabled="true" stopProcessing="true">

           <match url="^api/v2/" />

           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />

       </rule>

       <rule name="Ignore other asp.net requests" enabled="true" stopProcessing="true">

           <match url="\.(asmx|axd|ashx)" />

           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />

       </rule>

       <rule name="Add trailing slash to folders (.com/b -> .com/b/)" enabled="true">

           <match url="^([^.?]+[^.?/])$" />

           <conditions logicalGrouping="MatchAll" trackAllCaptures="false">

               <add input="{HTTP_HOST}" pattern="(.*)" ignoreCase="false" />

           </conditions>

           <action type="Redirect" url="{R:1}/" redirectType="Permanent" />

       </rule>

       <rule name="Redirect ../default.aspx to ../" enabled="false">

           <match url="^([a-zA-Z0-9\-\._:/]*?/)?default.aspx(\?.*)?$" />

           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />

           <action type="Redirect" url="{R:1}{R:2}" redirectType="Permanent" />

       </rule>

       <rule name="Take requests without an extension and rewrite to ../default.aspx" enabled="true" stopProcessing="true">

           <match url="^((?:.*?/)*[^.\?]*)(\?.*)?$" />

           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />

           <action type="Redirect" url="{R:1}default.aspx{R:2}" />

       </rule>

  • You should be rewriting https://[host_name]/default.aspx/1/123 to https://[host_name]/1/123

    In analytics, your url rewrite rules should be fairly simple as you only need to redirect the root default.aspx/* to *.  You don't need to bother with any internal rewrites as the default document module should take care of the internal rewrite to default.aspx anyway.

  • When I manually type in the URL: https://[host_name]/1/123, I got the following error:

    An unknown problem occurred with your last request. Please click back, or the link below, and try again.

    Is there something in the default document module that we didn't configure properly?

  • Alex, any idea of what the problem is with our default document module?