DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN 4.8.2 from domain.com to old.domain.com

Sort:
You are not authorized to post a reply.





New Around Here





    Hello to All,

    i'd like your help with regards to an issue i'm facing. I'm totally newby to DNN but i need to find a solution.

    We had a old website with name "domain.com" under DNN 4.8.2 with IP:10.10.10.1. We've created a new one but we wanted to keep the old website for historical reasons, so we've created a subdomain "old.domain.com".

    We've redirected the "domain.com" to the new IP on a new host, and we've kept the old IP:10.10.10.1 to point on the historical site "old.domain.com".

    Our old machine has IIS 6.0 and WinServer 2003.

    We are changing the Host Header Value under IIS> Web site> Properties> Web site>Web site identification>IP Address> Advanced from domain.com to old.domain.com

    Hitting http://old.domain.com we can see the home page of the historical website but every page is redirecting to the new website, i.e. instead of "old.domain.com/Default.aspx?tabid=104" it's turning to "domain.com/Default.aspx?tabid=104" and of course this page does not exist.

    Could you please advise how can i accomplish to preserve the historical website without sending me all times to the new one?

    Thank you in advanced for all your help.

    Kostas-





    Veteran Member





      1. DNS should be configured so that old.domain.com is pointed to the old website.
      2. IIS for the old website should be bound to old.domain.com
      3. In DNN, the portal alias for the old website should be set to old.domain.com
      Joe Craig
      DNN MVP
      Patapsco Research Group





      New Around Here





        Dear Joe,

        Items 1 and 2 have been made. Could you please advise how to set the portal alias in DNN?

        Thank you,
        Kostas





        Veteran Member





          Go to Admin, Site Settings and then look for the Advanced Settings tab. Open the Site Aliases section and add an alias for old.domain.com. Make it primary.

          Because requests for domain.com will never reach this installation, you can choose to leave the existing site aliases there.

          ----------------
          It's possible that you won't be able to do this if existing redirection takes you to the new site. In that case, you will need to get into your database and edit the PortalAlias table to add old.domain.com as an alias.
          Joe Craig
          DNN MVP
          Patapsco Research Group





          New Around Here





            Dear Joe,

            i cannot access the admin side as you have correctly pointed since the redirection has took place. Could you please check the screenshot and point me the correct section to add the value you've advised?

            Thank you,

            Kostas






            Veteran Member





              Add a row to the table. Typically you would be able to do this using SQL Server Management Studio. Right click on the table and choose "Edit Top 200 Rows." Enter the PortalID and the new alias "old.domain.com" or whatever the actual old domain name is. Match the PortalID with what is there. That's it.

              You'll probably have to restart the IIS App Pool.
              Joe Craig
              DNN MVP
              Patapsco Research Group





              New Around Here





                Dear Joe,
                Worked like a charm! Thank you very much.
                Greetings from Greece and stay safe!
                Thank you,
                Kostas-
                You are not authorized to post a reply.

                These Forums are dedicated to the discussion of DNN Platform.

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

                1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                3. 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.
                4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                5. No Flaming or Trolling.
                6. No Profanity, Racism, or Prejudice.
                7. Site Moderators have the final word on approving / removing a thread or post or comment.
                8. English language posting only, please.

                Would you like to help us?

                Awesome! Simply post in the forums using the link below and we'll get you started.

                Get Involved