0

Has anyone tried to put a regular file to the root directory of a sharepoint web application's IIS site. It does not work. For example create an index.html file in the root directory of your web application on the server filesystem and call it like sharepointwebappurl/index.html this will not work. But create a directory in (e.g. subfolder) and put index.html into that folder. sharepointwebappurl/subfolder/index.html now it works

I am aware of some exceptions (put robot.txt in IIS root, it works)

I know I can upload index.html via Sharepoint Designer to the root folder of a web app and keep it in content db. But this option is not suitable for our case.

Any ideas?

  • 1
    Can you explain what you are trying to do and why? That might help people offer a better solution – Dave Wise Dec 5 '13 at 19:47
  • There is a windows service running on the server and it generates some static files and puts those files to the root path of the sharepoint iis site. We cannot change the configuration of this windows service in order to give a different path instead of root path. Those files are called from the external parties, thus we have to keep urls. – nit Dec 5 '13 at 21:52
  • I created another windows service and it monitors iis root site and copies generated physical files to sharepoint root folder, but i wonder if an easier solution exists. – nit Dec 5 '13 at 22:01
1

For the most part, IIS doesn't look to the file system directly for web content when serving SharePoint web applications. Rather, it looks to SharePoint to provide the content. SharePoint serves up content from a combination of database sources and file system sources. If you want to put something on the file system, it should go in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS folder where it will be available in the /_layouts/ folder of each site.

If you want to work with the files served up by a SharePoint site, you can use SharePoint Designer. This will allow you to upload an Index.html file to the root of a SharePoint site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.