I want to show document from windows folder but hide the folder location?

37 Views Asked by At

Below is my sample code in SharePoint Data view where @Documentlocation is my //server/folder/document.pdf location. When I display this via webpart, it shows the link also. Is there way I can hide server and folder location details?

href=File:@Documentlocation><xsl:value-of select=@documentName
1

There are 1 best solutions below

0
Akjm On

What you're looking for is using the .htaccess file on the server to create a "fake" file path to an actual subdirectory.

Take a look at this page here: https://css-tricks.com/forums/topic/htaccess-fake-directory-to-actual-subdirectory/