Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Portal Alias MysteryPortal Alias Mystery
Previous
 
Next
New Post
7/13/2007 3:44 PM
 

Nope, that didn't work.

In your opinion does my script to redirect Albigen.Net to the DNN directory conform with standard procedure in a case where the hosting provider will not point a domain name to a subdirectory?

I'm starting to wonder whether my hosting provider is somehow caching the SQL data, but that's a different issue.

I need to reserve Albigen.Com as the root because I have other applications above it, only one of which is DNN, which is in the /portals subdirectory. But to make sure, I tried your suggestion anyway.

Since I'm in the process of upgrading DNN  - I'll probably end up editing the portal aliases on my local server, wiping out the current installation and database on the website, and pretend like I'm starting over from scratch. Obviously the website alias can't be edited from the website while the application is running, but I can edit the website alias when the application is running on my local server.

One distracting idea is the notion that the only differenxce between a child portal and a parent portal is that the child portal has a subdirectory. But that's only a side issue, because the HomeDirectory field in the Portals table is indicated to be Portals/0, which is as it should be.

I don't see a field anywhere in the database that designates whether the portal is a parent or a child, so maybe this is simply implicit - i.e., a reflection of the portal alias URL.

Anyway, thanks again, appreciate your help.  Steve

 
New Post
7/16/2007 5:09 PM
 

Steve,

Sorry for the slow correspondance -- I didn't have the opportunity to reply over the weekend. I was just typing out my latest response and during which tested your sites and everything seems to be working well. What was the final verdict?

thanks,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/16/2007 6:28 PM
 

The hosting provider tells me I have to rely on URL rewriting to get rid of the string "/portal" in the URL

I.e., to convert www.albigen.net/portal to simply www.albigen.net     So I have to figure out the rule for that.

The situation differs with the method described by Lee Sykes (DNNCreative, Issue 17) in that his hosting service will point a domain to a subdirectory, using host headers, while mine will not. Mine will only point a domain name to the root.

Just to complete the thread ... The hosting provider suggested a better script than the one I posted above, so I put this in the default.aspx file in the root of my site:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)        
   If InStr(UCase(Request.ServerVariables("SERVER_NAME")), UCase("albigen.net")) > 0 Then
       Response.Redirect("/portal")
   End If
End Sub

Which is more scientific than the one in the earlier post.

Now I need to do some reading on URL rewriting.   

Thanks for your help Ian.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Portal Alias MysteryPortal Alias Mystery


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out