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
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/