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 ...moving child portal to parentmoving child portal to parent
Previous
 
Next
New Post
12/8/2006 5:44 AM
 

johnt wrote
Is it possible to do it backwards ?

i.e. if we create parent portal on www.mydomain.com with name: www.name.com but dns is not settled yet, coud we add a new alias like www.mydomain.com/name and build it while it became available ?

Thanks

Yes, you can also do this backwards, but its a bit more work. You have to do 2 things: first create the proper http alias under site settings when logged on as host, and second: create a physical folder in the root of your dnn install with the name of your childportal (in your sample this would be "name"), and create a file named Default.aspx in that folder. The contents of that file should be this (just copy paste...):

<%@ 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

</script>

HTH,

Cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/8/2006 7:43 AM
 
Excellent,

Thanks Erik.

If I understand it correctly new folder (named: name) have to be created in the root (wwwroot) directory not in portals ?.
I wonder what is this going to do when in Portals directory we already have portal for this site created with its number (X).
1. is this only redirection for building the portal and still using that (X) folder ?
2. or the portal is building in new folder (name) ?
If the first case is true then, when we get our DNS pointed to root, portal will be accessible form outside (world) an we only need to delete "http alias www.mydomain.com/name", and this phisical folder (name) ?
If the second case is true, how can we move all from folder (name) to folder (X) ? and can we delete the "http alias www.mydomain.com/name" ?
I hope first one is correct ?!?

Cheers,

johnt
 
New Post
12/10/2006 4:02 AM
 

John,

the folder is needed because IIS expects a folder in that location if someone requests www.domain.com/name. So yes, you have to create that folder in the location IIS expects it to be, so that would be in the root of your dnn instance (same level as the dnn web.config file). The folder and the default.aspx is only used to tell dnn what portal to activate. after visiting a childportal, the visitor is actually redirected to the main domain. The portal root (located in /portals/X), has nothing to do with this, you do not need to move these files!


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
12/10/2006 11:36 AM
 
ErikVB wrote
 clayher wrote

i did this and this works fine. I am still able to use it via the http://parent/child path.

I do not want to use this former Portal (the parent) anymore may i delete this?

 

 

yep, remember to do it in 2 places: delete the alias in site settings, and delete the physical folder in your site root

So, if I perform the above, will the all urls in the child portal (what was the child portal) have no reference to the original parent portal. I'm worried that as currently the child portal has references to the parent portal in the url, it is thus dependant on it and that if I delete the physical folder, the child portal will fall over.

 
New Post
12/12/2006 7:55 AM
 
thx everything fine
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...moving child portal to parentmoving child portal to parent


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