Datsun 240z

For a number of years I had a 1973 Datsun 240z, and a 1978 280z 2+2 parts car. Here you will find some of the posts and videos from those two cars.

DotNetNuke Tip Modifying your Portal Aliases

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 6, 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 6, 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

Add Comment

Please add your comment by filling out the field(s) below. Your comment may need to be approved before it becomes visible.
Enter your first name for display with the comment
Enter your last name for display with the comment.
Enter your email address so that we may contact you if necessary. We will also use this for your Gravatar.
Enter the URL to your website. URLs may be removed from comments.
Enter your comment here.
If you can't type Human2 in, you can't post, plain and simple.
Submit Comment Cancel

Chris Hammond is

Chris Hammond is a father, husband, leader, developer and car guy. Chris has long specialized in ASP.NET and DotNetNuke development, so you will find a variety of topics here on the website. For more information check out the about me page.

If you are looking for DotNetNuke consulting please visit my business website at https://www.christoc.com/