我应该使用哪个目录来放置test.html,以便使用以下url通过浏览器访问它:
http://mysharepointservername.com/test.html?
如果我将文件放到C:\inetpub\wwwroot\wss\VirtualDirectories\80,我会得到404 not found错误。
有没有其他我应该用来放置test.html的目录?
提前谢谢你
发布于 2014-05-13 23:23:01
您可以在sharepoint中创建一个模块,并将test.html放在该模块下。
在elements.xml中写道:
Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="CustomPage" Url="">
<File Url="CustomPage\test.html" Name="test.html" Type="Ghostable" />
</Module>
</Elements>并使用feature部署此模块。
通过这种方式,您可以使用http://mysharepointservername.com/test.html访问页面
https://stackoverflow.com/questions/23634660
复制相似问题