Try our conversational search powered by Generative AI!

Rewriting the VPP urls

Vote:
 

Hi guys, ive had a look around and havent managed to find the answer for this so:


I want to change the way that urls to files in the vpp are rendered - to redirect these paths to a different server

for example /global/image.jpg gets rewritten to http://www.mysite.com/files/global/image.jpg

i can think of a few possible ways, but not sure which is best or where to find the answers.

1) custom url rewriter - is this the same as it was for episerver 6? or has the implementation changed

2) events - i noticed some documentation on rewrite events but couldnt find out where they are fired

3) custom vpp - do i create my own  VirtualPathVersioningProvider?

 

Thanks

 

#66682
Mar 06, 2013 17:40
Vote:
 

You could create an httpmodule to do the redirecting.

 

#66698
Mar 06, 2013 21:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.