we need to change the virtualpath from xxx -> yyy but when we change we lose all the files in the
vpp directory ( the files still there and the properites point to them)
<add showInFileManager="true" virtualName="Catalog Files" virtualPath="~/Catalog/" bypassAccessCheck="false" indexingServiceCatalog="Web" physicalPath="\\vmintdevnew\dvlpWWWRoot\VPP\MyEPiServerSite\Catalog" name="SiteCatalogFiles" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />
Can you give a little more detail around this? We move physical VPP locations without any problems?
It should be as simple as:
We need to change the name of the virtual path from xxx to yyyy
so image that was
http://aaa.com/catalog/a.gif -> http://aaa.com/catalog_images/a.gif
i need to change the name not the location
Unfortunately as far as I am aware there is no easy way to achieve this. You could:
However this wont update all of your old links. You will either need to update these using an update through the API, or do this manually depending on the number of pages.
What type of VPP are you using? If it is the VirtualPathVersioningProvider this should not be a problem since it renames all files that are uploaded to the system to a Guid. I.e. guid.fileextension.
According to your configuration I can see that you are using the Versioning Provider, so you should be able to accomplish this by simply renaming the virtualPath attribute in your configuration.