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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...pointing a domain name to a dnn applicationpointing a domain name to a dnn application
Previous
 
Next
New Post
12/20/2007 8:27 PM
 

i have a website called www.granitedigitalimaging.net  where I've created the dnn application.

Another domain name called www.oakhill-centex.com  is pointing to  this application and the hosting provider added a folder called "oakhill" and inside that folder is a file called default.aspx.

This file is supposedly suppose to make this website be oakhill-centex.com by using this code:

<%@ Page language="VB" %>
<%@ Import Namespace="DotNetNuke" %>

<script runat="server">

    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

            Dim DomainName As String
            Dim ServerPath As String
            Dim URL() As String
            Dim intURL As Integer

            ' parse the Request URL into a Domain Name token
            URL = Split(Request.Url.ToString(), "/")
            For intURL = 2 To URL.GetUpperBound(0)
                Select Case URL(intURL).ToLower
                    Case "admin", "desktopmodules", "mobilemodules", "premiummodules"
                        Exit For
                    Case Else
                        ' check if filename
                        If InStr(1, URL(intURL), ".aspx") = 0 Then
                            DomainName = DomainName & IIf(DomainName <> "", "/", "") & URL(intURL)
                        Else
       Exit For
                        End If
                End Select
            Next intURL

            ' format the Request.ApplicationPath
            ServerPath = Request.ApplicationPath
            If Mid(ServerPath, Len(ServerPath), 1) <> "/" Then
                ServerPath = ServerPath & "/"
            End If

            DomainName = ServerPath & "Default.aspx?alias=" & DomainName

            Response.Redirect(DomainName,True)
 
    End Sub
______________________________________________

I've had nothing but bugs and errors and problems that I cannot figure out where they are coming from, I got a fix to the fckeditor from the developer and it held for awhile, and errors are back again.

My question is: Is this the correct way to be pointing this domain  name to my dotnetnuke application, or is this the problem? If it IS the problem, what is the best way to point another domain name to a dotnetnuke application.

Ps When I went to see if my alias names were holding, they were gone. Right now I have as http alias's as granitedigitalimaging.net, www.granitedigitalimaging.net, and I want to ADD oakhill-centex.com and www.oakhill-centex.com, but the application isn't accepting changes!

Thanks for any help with my issue er.. Issues!

PS Plus, I'm going to have to migrate this site and another site to a dedicated server next month, and God knows how that will go because I have NO CLUE how to migrate my dnn applications to another server, but I'll keep reading.

 
New Post
12/21/2007 12:01 AM
 

I've never done it like that but putting a folder called oakhill in the root and adding the default.aspx would be the correct procedure if you created a child portal (www.granitedigitalimaging.net/oakhill). Are both these sites oakhill-centex and granitedigitalimaging supposted to be pointing to the same portal (ie: displaying the same information, same user base, etc) or are they supposed to be completely separate portals but using the same DNN install? If it's the former then adding the alias to your current site should be good enough though I believe the URL will change to the first one in the list. If it's the second option then you need to create the parent portal with that alias. I'm not sure what's necessary for your hosted site and there may be different ways of doing this but as I run my own server this is what I do.

  1. In IIS I create a new website pointing to the root dnn install and set the host headers for the URL (oakhill-centex).
  2. Also in IIS I make sure the host headers for the original website are set only for the original site (granitedigitalimaging).
  3. In DNN on the parent portal, while logged in as host, create a new parent portal with the new alias (oakhill-centex).

That's what's always worked for me.

 
New Post
12/21/2007 9:06 AM
 

Dear Mike

Thanks for you prompt response to my issues! In response to your questions:

 "Are both these sites oakhill-centex and granitedigitalimaging supposted to be pointing to the same portal (ie: displaying the same information, same user base, etc"

This is what needs to be. And the URL should change to oakhill-centex.com NOT be granitedigitalimaging.net

If you type either url it SHOULD change to oakhill-centex.com.

Currently, I log into the site and cannot make any changes. I cannot clear the event viewer log, I cannot do anything, not even ADD the http alias oakhill-centex.

I don't know if I have access to IIS, but I will check it out, if not I'll try to get the hosting provider to do the steps you mention above.  Until then, I cannot think of anything I can do to fix the problems with the site? Do you think that not having the http alias oakhill-centex.com is causing the errors, and if so, is there a way I can add this in the database instead of thru dnn login?

All that being said, thank you for all your advice so MUCH!!!!!!  Lisa Smith

 
New Post
12/21/2007 9:29 AM
 

Mike,

One more question. The IIS steps  you mention, if I do this, will the url then transform to oakhill-centex.com or will it be a long url

like "granitedigitalimaging.net/oakhill-centex/default.aspx??

The client definately wants to just see www.oakhill-centex.com and nothing to do with the other url.

 

 
New Post
12/21/2007 10:58 AM
 
  going to post in the fck forum now.......


 
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...pointing a domain name to a dnn applicationpointing a domain name to a dnn application


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