• Login
  • Register

DNN Forums

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

How to redirect a page to use a specific domain?

You are not authorized to post a reply.
Sort:


Basic Member


Posts:118
Basic Member

    Hi -

    I am using Action Form modules, and the license I just got will only work on some domains (and not on other domain variants)
    Is there a simple way I can redirect any page that has an Action Form module on it , so that it always loads using the domain where the Action Form will work?

    For example ('http://sccintranet/ISD-New/Request-Services/Forms/County-Employee-Form' won't work, and would need to be redirected to 'http://sccintranet.co.santa-cruz.ca.us/ISD-New/Request-Services/Forms/County-Employee-Form')

    What is the best way to acheive this?

    Thanks

    Tom



    Veteran Member


    Posts:412
    Veteran Member

      the easiest option would be setting the externally accessible domain as "primary" website alias (in website settings) and enable "redirect" mode for it.


      Basic Member


      Posts:118
      Basic Member

        Thanks Sebastian -

        I tried that, but now the other (non qualiified) domain doesn't work anymore.

        Primary Alias : http://sccintranettest.co.santa-cruz.ca.us/

        Other Site Alias: http://sccintranettest/

        When I try to browse using 'http://sccintranettest/', it gets redirected to : 'http://sccintranettest.co.santa-cruz.ca.us.co.santa-cruz.ca.us/', which fails. Do you know why this is occurring?

        Thnks for your help!

        Tom

         

         



        Veteran Member


        Posts:1112
        Veteran Member

          Are you missing something on the Other alias?
          Joe Craig
          DNN MVP
          Patapsco Research Group


          Basic Member


          Posts:118
          Basic Member

            Hi Joe, Thanks for your reply

            I don't see anything missing from the "Other" alias ('sccintranettest') , It hasnt changed from before when it was working. The only difference I can see is that I set it to "Redirect" mode.

            -Tom



            Veteran Member


            Posts:1112
            Veteran Member

              Oh, that's a local address, right? does the url resolve correctly?
              Joe Craig
              DNN MVP
              Patapsco Research Group


              Basic Member


              Posts:118
              Basic Member

                Yes - This is an intranet site, so just within our network. The URL worked fine before I changed it to "redirect" mode.

                -Tom




                Basic Member


                Posts:118
                Basic Member

                  No need to worry about this - I am going back to "canonical" mode, and just fixing the module license to support all domains.
                  Thanks for all your help


                  Veteran Member


                  Posts:412
                  Veteran Member

                    the question is, where the redirect is coming from - usually, there should only happen a single redirect in DNN - but maybe there is another redirect in your local Windows hosts file or by a local name server.
                    You are not authorized to post a reply.

                    These Forums are dedicated to 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. 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.

                    Would you like to help us?

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

                    Get Involved