HTTP 301 StoreFront URL Redirect not working for Citrix Workspace App for Windows 21.05 or newer
book
Article ID: CTX331501
calendar_today
Updated On:
Description
When attempting to redirect your On-Prem StoreFront URL to your new Cloud Workspace URL,
It works successfully when you use the Web Browser as the URL correctly redirects to your new URL.
-> But you encounter issues with Citrix Workspace App not redirecting to the new URL
Environment
The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.
Resolution
The following settings must be used for the URL redirection to work with CWA for Windows,
Replace the Storefront On-Prem URL to the new Cloud URL + uncheck boxes + select "301"
-Do the same on ALL StoreFront servers

Problem Cause
Incorrect settings used to allow the URL redirection to work as expected
Additional Information
https://docs.citrix.com/en-us/citrix-workspace-app-for-windows/about.html#whats-new-in-2105
What’s new in 2105
Support for customized URLs through 301 redirects
Citrix Workspace app now allows you to add URLs that redirect to Citrix Workspace from StoreFront or Citrix Gateway through HTTP 301 redirects.
If you’re migrating from StoreFront to Citrix Workspace, you can redirect the StoreFront URL to a Citrix Workspace URL through an HTTP 301 redirect. As a result, when adding an old StoreFront URL, you’re automatically redirected to Citrix Workspace.
Was this article helpful?
thumb_up
Yes
thumb_down
No