redirect content to a different URL while maintaining the subsequent path

Scope:

Redirect the traffic from site.net/Folder/rest_of_the_URL to site.net/Folder2/rest_of_the_URL.

 

Solution:

Create the URL modification rule, as follows:

  • Rule Name: ModifyFolder
  • Rule Type: Modify URL
  • Match String: /^\/Folder(.*)/
  • Modified URL: /Folder2\1/

Then, in the Virtual Service - enable content switching and apply the Modify URL rule in the Request Rules section.

Note: This is a URL modification rule, not a redirection. For this reason, the change will be not visible to the client and the browser URL will still point to site.net/Folder/rest_of_the_URL, even if the content displayed is actually stored on site.net/Folder2/rest_of_the_URL.

Was this article helpful?

0 out of 0 found this helpful

Comments