Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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