Moved DNN Installation to New Server, Now Sub-Pages are Gone
Last Post 04/25/2014 11:05 AM by Joseph Craig. 12 Replies.
Author Messages
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/07/2014 11:36 AM  
Hi All,

I have just moved my DNN installation from my local machine to a development server. After going through the migration process (link below), I can access the home page on the new development server, but when I try to navigate to any subpages (including admin), all I get is 404s.

Also, I had to script out the database because the local version was SQL Server Express and the new dev version was SQL Server.

Any ideas on what might be happening?

Thanks in advance!

http://mitchelsellers.com/blogs/200...ction.aspx
Joseph Craig
DNN MVP
Posts:11667


--
04/07/2014 12:34 PM  
What vere the urls being generated for the non-home pages?

Joe Craig, Patapsco Research Group
Complete DNN Support
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/07/2014 2:00 PM  
Joe,

The dev server is not public, so the url for the home page on the dev server is 10.0.201.XX/DNN, and the non-home pages are like 10.0.201.XX/DNN/company, 10.0.201.XX/DNN/support, 10.0.201.XX/DNN/contact, etc.

Joseph Craig
DNN MVP
Posts:11667


--
04/07/2014 7:03 PM  
Did the local server have the DNN directory in the URL?

My guess, without looking is that the application is generating incorrect URLs. So that 10.0.201.XX/DNN is correct,but the other links are wrong. Check and see if 10.0.201.XX/DNN/Home.aspx also produces a 404 error. Then look at the "portal aliases" and also examine the generated page source an see what the URLs for the non-home pages are. This might give a clue.

Joe Craig, Patapsco Research Group
Complete DNN Support
Joseph Craig
DNN MVP
Posts:11667


--
04/07/2014 7:05 PM  
I should also mention the DNNBackup from Evotiva.com is simply a terrific tool for moving sites. It will script the database for you, in addition to providing tools to reconstruct the site on a new server.

Joe Craig, Patapsco Research Group
Complete DNN Support
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/08/2014 9:02 AM  
So, 10.0.201.XX/DNN/Home.aspx redirects to the home page without a 404, and my portal alias is 10.0.201.XX/DNN.

Also, I looked at DNNBackup on your suggestion. Looks like a great solution. Do you know if there would be any potential security risks in using something like that?
Joseph Craig
DNN MVP
Posts:11667


--
04/08/2014 9:31 AM  
So 10.0.201.XX/DNN/Home.aspx works and 10.0.201.XX/DNN/SomeOtherPage.aspx doesn't work? Can you get to any Admin pages?

The only other thing that I can think of is that some pages are marked as secure but you don't have SSL. You can check in the database (Tabs table) for that.


-----------------------
I find Evotiva's DNN Backup to be a simple and nearly flawless way to move DNN installations from server to server. I know several other people who consider it indispensable.

As for security issues, no more than any other tool. It uses ZIP files, and gives you the option to password protect those files. I never do that.

Joe Craig, Patapsco Research Group
Complete DNN Support
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/08/2014 11:44 AM  
That's right, 10.0.201.XX/DNN/SomeOtherPage.aspx does not work. I get 404s on all pages other than home, even Admin pages.

I checked the tabs table for IsSecure, and the only ones set to secure are the host pages. Can't get to those either.

I asked this question on stackoverflow and Chris Hammond asked which versions of IIS I was using on both environments (7.5 on local, 7.0 on dev), but I haven't heard back from him yet. I wonder if this difference is part of the problem.
Joseph Craig
DNN MVP
Posts:11667


--
04/08/2014 1:10 PM  
I saw that this morning.

I am assuming that your URLs are extensionless? I am remembering that some versions of IIS need a plugin to be installed to handle extensionless ASP.NET pages. You might want to google around for something like that. Chris is certainly some who can probably tell you how to do this off the top of his head!

Joe Craig, Patapsco Research Group
Complete DNN Support
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/23/2014 2:34 PM  
Joe,

I tried changing the url format in web config to humanfriendly instead of advanced, as mentioned by someone on the DNN forums:
http://www.dnnsoftware.com/forums/f...sts#500104

Now, I can access admin and subpages, but not without extensions. I'm going to try the Microsoft hotfix for IIS as soon as IT gets finished with some server upgrades. Hopefully that will do it.

Also, I got the DNN Backup module you recommended, and if this whole thing with IIS gets worked out, I can tell it's going to be a real time-saver.
Joseph Craig
DNN MVP
Posts:11667


--
04/23/2014 4:00 PM  
Let me know how it goes.

Joe Craig, Patapsco Research Group
Complete DNN Support
Gray
Nuke Newbie
Nuke Newbie
Posts:9


--
04/25/2014 10:28 AM  
That fixed it. You were right... there is a Microsoft hotfix for certain IIS 7 or 7.5 handlers that enables extensionless urls:

http://support.microsoft.com/kb/980368

Without the hotfix, you can set urlformat to "humanfriendly" in web config, and this will allow navigation to the admin, host & subpages, but not without url extensions. The hotfix allows DNN to use the "advanced" extensionless setting.

Thanks for your help!
Joseph Craig
DNN MVP
Posts:11667


--
04/25/2014 11:05 AM  
Great!

Joe Craig, Patapsco Research Group
Complete DNN Support


---