# How do I add .htm files to root of my SP2010 site

I'm currently working on moving our current website from Dreamweaver to SharePoint, and I have a requirement to have an .htm file at the root of my SP2010 site. The reason is that we have software that expects a specific URL, which looks like this:

http://www.mysite.com/productupdates.htm?version=xxxx&blah=xxxx&whatever=xxxx


I tried adding the .htm file to the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder, but going to that .htm page gives me a 404 error.

What options do I have here, assuming that changing our software is NOT an option?

Is there any configuration within IIS I can do to allow this .htm file to work? Or perhaps within SharePoint 2010 itself?

Thanks

-

If the file isn't expecting to be in a document library, you can use SharePoint Designer to upload the file to the root of the web site, and also set this page to be the HomePage for the site within SharePoint Designer.

-
^^ SharePoint Designer is the easiest way to upload an HTML document to the root of your site application. –  John Chapman Oct 6 '11 at 16:50
It's elegant in its simplicity! Uploading the page via Designer did the trick, and adding querystring parameters to the URL of this page, and executing JavaScript within this .htm file are still possible. Perfect! Thank you, James. –  QMKevin Oct 6 '11 at 18:52

You should be able to provision html at the root of the site by a FEATURE that uses Module element.

From VS.NET add project item of type Module, replace sample.txt with your html file and make sure the elements.xml looks like below assuming you have sample.htm file abd your module name is RootModule. The name of module and html file can be different in your case.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="RootModule">
<File Path="RootModule\Sample.html" Url="Sample.html" />
</Module>
</Elements>

-
I'm sure this would work, but James had a much easier solution to the exact problem I was facing. Thanks for the idea though. –  QMKevin Oct 6 '11 at 18:53