首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从浏览器通过以下url http://mysharepointservername.com/test.html访问"test.html“页面

从浏览器通过以下url http://mysharepointservername.com/test.html访问"test.html“页面
EN

Stack Overflow用户
提问于 2014-05-13 22:52:10
回答 1查看 102关注 0票数 0

我应该使用哪个目录来放置test.html,以便使用以下url通过浏览器访问它:

http://mysharepointservername.com/test.html

如果我将文件放到C:\inetpub\wwwroot\wss\VirtualDirectories\80,我会得到404 not found错误。

有没有其他我应该用来放置test.html的目录?

提前谢谢你

EN

回答 1

Stack Overflow用户

发布于 2014-05-13 23:23:01

您可以在sharepoint中创建一个模块,并将test.html放在该模块下。

在elements.xml中写道:

代码语言:javascript
复制
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访问页面

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23634660

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档