DNN Forums

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

Change Default Favicon

Sort:
You are not authorized to post a reply.





New Around Here





    Greetings,

    I am aware I can change the favicon of a portal but when someone accesses a file from the File Management the DNN favicon still shows up, for example. This occurs on all my Portals so I thought the best way to solve this would be to change the default favicon but I cannot find it.
    I would like to ask where it is located.

    Best Regards,
    José Nobre






    Veteran Member





      José,

      You can overwrite the favicon.ico file in the root of your web site, then this is what will appear on all portals of your DNN installations in this case. There is no way to do that on a per-portal basis.

      But be aware that an upgrade may overwrite this file, so you need to change it again after every upgrade.

      Happy DNNing!
      Michael

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Connect





      Growing Member





        You could try setting something like this in the head of a custom skin, different on each site
         <link rel="shortcut icon" href="/path/to/folder/favicon.ico" type="image/x-icon"> 






        Veteran Member





          Posted By James Clarkson on 06 Oct 2021 05:28 PM

          You could try setting something like this in the head of a custom skin, different on each site
            

          James,

          this is what DNN does automatically when you define a fivicon for a portal. The problem is that if you have a link to a document (PDF or whatever), the skin (and also DNN) does not load, but only the document, therefore the browser uses the favicon.ico file in the root directory.

          Happy DNNing!
          Michael

           

           

           

          Michael Tobisch
          DNN★MVP

          dnnWerk Austria
          DNN Connect





          Growing Member





            Ah, I see now. It should be possible to use url rewrite rules in IIS.

            <rewrite>
              <rules>
                <rule name="Favicon1">
                  <match url="^favicon.ico$"/>
                  <conditions>
                    <add input="{HTTP_HOST}" pattern="^siteone.com$" negate="false" />
                  </conditions>
                  <action type="Rewrite" url="/favicon1.ico"/>
                </rule>
                <rule name="Favicon2">
                  <match url="^favicon.ico$"/>
                  <conditions>
                    <add input="{HTTP_HOST}" pattern="^sitetwo.com$" negate="false" />
                  </conditions>
                  <action type="Rewrite" url="/favicon2.ico"/>
                </rule>
              </rules>
            </rewrite>

             






            Veteran Member





              James,
              this is a really good idea!
              Happy DNNing!
              Michael

              Michael Tobisch
              DNN★MVP

              dnnWerk Austria
              DNN Connect
              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