Chris Hammond is
a father, husband, developer, geek, car guy. The Director of Training for DotNetNuke Corporation. To learn more about Chris check out the about me page.
LIVESTRONG Challenge Davis

I use Strava to track my bicycle rides. Below you can see my recent activity.

 

Tags
  1. 12 items are tagged with .net
  2. 58 items are tagged with asp.net
  3. 47 items are tagged with Autocross
  4. 12 items are tagged with Baby
  5. 39 items are tagged with Boston Red Sox
  6. 21 items are tagged with California
  7. 15 items are tagged with Car
  8. 29 items are tagged with Community Server
  9. 14 items are tagged with communityserver
  10. 17 items are tagged with Corvette
  11. 26 items are tagged with daily tips
  12. 93 items are tagged with Development
  13. 180 items are tagged with DotNetNuke
  14. 25 items are tagged with DotNetNuke Development
  15. 11 items are tagged with DotNetNuke Tips
  16. 12 items are tagged with DotNetNuke Training
  17. 12 items are tagged with Electric
  18. 12 items are tagged with Energy
  19. 25 items are tagged with Family
  20. 73 items are tagged with Fitness
  21. 117 items are tagged with Friends
  22. 44 items are tagged with Games
  23. 32 items are tagged with general Software Development
  24. 13 items are tagged with Green
  25. 22 items are tagged with HDTV
  26. 18 items are tagged with Health
  27. 13 items are tagged with Leaf
  28. 381 items are tagged with Life News
  29. 12 items are tagged with Microsoft
  30. 39 items are tagged with Music
  31. 14 items are tagged with Nissan
  32. 13 items are tagged with Nissan Leaf
  33. 88 items are tagged with Photography
  34. 18 items are tagged with Photos
  35. 89 items are tagged with Pictures
  36. 108 items are tagged with Places to See
  37. 20 items are tagged with Project 240Z
  38. 12 items are tagged with Project 350Z
  39. 21 items are tagged with Red Sox
  40. 19 items are tagged with Red Sox in St. Louis
  41. 15 items are tagged with SCCA
  42. 418 items are tagged with SEO
  43. 203 items are tagged with Site News
  44. 33 items are tagged with St. Louis
  45. 275 items are tagged with Technology
  46. 41 items are tagged with Travel
  47. 17 items are tagged with Vista
  48. 16 items are tagged with Weblog
  49. 16 items are tagged with Xbox360
  50. 12 items are tagged with Zune

DotNetNuke Tip Modifying your Portal Aliases

Last Updated Wednesday, January 23, 2008 4:51 PM


Welcome back to the DotNetNuke tips! I started doing this over a year ago, though with getting married last fall and working on my Datsun 240Z lately I haven't blogged near as much lately about DNN topics. So here we go, starting up again with my DotNetNuke Tips.

Today's tip follows:

When you're doing testing locally with a backup for a Production Database and Website one of the things you need to be sure to do is change your Portal Alias for your local URL, instead of your production URL. If you don't do this you'll hit the local URL and it will most likely redirect you to the production URL. This can cause a bit of chaos if you don't notice that you're no longer on the local/testing URL and start modifying the production web site.

To change your portal alias you can do the following.

Open your SQL Server management tool; SQL Enterprise Manager, SQL Server Management Studio, or whatever you choose to use.

Browse to your local/test database, open up the PortalAlias table. You can either Modify your existing Alias, or you can add a new Alias to this table. test.myurl.com for example, be sure to setup the proper portal ID if you're adding a new alias and you have a lot of different aliases in there. You might also need to setup the aliases for the child portals as well if you plan on using those.

The next step is crucial. You'll want to reset your website before you try to hit the new alias. You can do that in a couple of ways, I always prefer to open up the web.config file, add a carriage return and hit save. This will cause IIS to reload the site, clearing out the cache and loading the new portal aliases.

Look for more DotNetNuke tips coming soon!

Posted from weblogs.asp.net/christoc
Recent Comments

I want to run DNN using just an IP, but when I chnage the PortalAlias URL to the IP, it create a redirect loop and the page never loads. How can I run DNN with just the site's IP address?

Posted By: James Bielefeldt on Thursday, June 18, 2009 3:31 PM
This worked great for me, however, I had a certificate on my other site that I copied the database and files from, now the Admin pages do not load!
Posted By: Tim Buffo on Thursday, August 06, 2009 3:57 PM
James, you might need to go to the TABS table and change the ISSECURE flag on the pages.
Posted By: Chris Hammond on Thursday, August 06, 2009 3:59 PM
Yeahhhhh! Atta boy Chris. I'm moving a clients site, and got stuck in a loop. The trick to the web.config was the answer. Love it. By the way... keep up the married guy stuff. You have the right priorities on your banner. I know...see our url - authors, as yourself. Thanks for the help.
Posted By: Daniel Comp on Sunday, February 21, 2010 11:31 PM