【问题标题】:Accessing "test.html" page from the browser at the following url http://mysharepointservername.com/test.html通过以下 url http://mysharepointservername.com/test.html 从浏览器访问“test.html”页面
【发布时间】:2014-05-13 14:52:10
【问题描述】:

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

http://mysharepointservername.com/test.html ?

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

我应该使用另一个目录来放置 test.html 吗?

提前谢谢你

【问题讨论】:

    标签: html iis sharepoint browser


    【解决方案1】:

    您可以在 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>
    

    并使用功能部署此模块。

    这样你就可以访问带有http://mysharepointservername.com/test.html的页面

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-22
      • 2011-05-19
      • 2014-08-26
      • 1970-01-01
      • 2013-09-28
      • 2012-08-22
      相关资源
      最近更新 更多