This is very important to move DNN instance from development server to production server without any error or data lose. Here are the steps to move your DNN instance from development server to production server.
Add New HTTP Alias for your site to access from production server. To do so you need to click on “Site Settings” link under ‘Admin’ tab and click on “Add New HTTP Alias” link. Give a new site URL (As you wish to access the site with name). There is one rule which need to be followed when you set the alias for your production site, do not use the HTTP before your alias name. For example if you want to access your site with name http://www.myfirstsite.com then you must add the alias as www.myfirstsite.com . The other way to set your site URL/ alias is to set it at database. You can set it in “PortalAlias” table.
Take a back up of development server Database.
Move your physical folder (site folder) from development server to production server. Create a virtual directory through IIS and set the web site properties as you have set at your development server.
Create a new Database at production server and restore the back-up database (The one you take from your development server).
Open the web.config file of production server and set the “connectionStrings” as below:
<!-- Connection String for SQL Server 2005 Express -->
<add name="SiteSqlServer" connectionString="Data Source=Production server ;Initial Catalog=Database name;User ID=UserID;Password=Password" providerName="System.Data.SqlClient" />
<!-- Connection String for SQL Server 2000/2005
6. Reset the IIS once.
7. Now you can access your site through the URL you gave above.