Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.
Anyone know how to shorten a mashup's URL in ThingWorx? I already have a page that lives at 'www.myserver.com/Thingworx/Home', so I need another address that will read 'www.myserver.com/Thingworx/Home/MyPageName'.
I've found this article already re using a Google API to shorten a URL: https://support.ptc.com/help/thingworx_apps/r8.5/en/index.html#page/thingworx_apps/ThingWorxAppsSetupConfig/url_shortening_service.html.
However, the second step of this article seems to indicate the use of Manufacturing Apps, which I am not using.
Solved! Go to Solution.
Since this is no clear reply here a short description.
Example rewrite.config:
RewriteRule ^/Common/(.*) /Thingworx/Common/$1 [L]
RewriteRule ^/DSP/(.*) /Thingworx/$1 [L]
RewriteRule ^/DSPR/(.*) /Thingworx/Runtime/$1 [L]
RewriteRule ^/Machine/(.*)$ /Thingworx/Runtime/index.html?mashup=MachineViewMashup&EntityName=$1 [R,L,NE,NC]
RewriteRule ^/Plant /Thingworx/Runtime/index.html?mashup=PlantViewMashup [R,L,NE,NC]
You can use Tomcat redirect mechanism by modifying server.xml and rewrite config. Don't have a full description right now but google may be your friend.
Since this is no clear reply here a short description.
Example rewrite.config:
RewriteRule ^/Common/(.*) /Thingworx/Common/$1 [L]
RewriteRule ^/DSP/(.*) /Thingworx/$1 [L]
RewriteRule ^/DSPR/(.*) /Thingworx/Runtime/$1 [L]
RewriteRule ^/Machine/(.*)$ /Thingworx/Runtime/index.html?mashup=MachineViewMashup&EntityName=$1 [R,L,NE,NC]
RewriteRule ^/Plant /Thingworx/Runtime/index.html?mashup=PlantViewMashup [R,L,NE,NC]
Hi @ague.
If you are satisfied with the previous response, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon