Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nick 97 posts 514 karma points
    Jun 27, 2023 @ 13:40
    Nick
    0

    Going Live with Umbraco Cloud - DNS / SSL Help

    Currently having issues with my domains DNS poiting to Umbraco Cloud Starter project. I've deployed my site to the Live environment and updated the hostnames and within the DNS of my doamain changed to the following:

    A Records to either or both IPv4 addresses: 104.19.191.28 104.19.208.28

    I assummed Umbraco Cloud would generate it's own SSL certificate, or is there another step I need to address to resolve this, any help would be much appreciated.

    But receive the below error

    enter image description here

    enter image description here

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jun 27, 2023 @ 15:04
    Chriztian Steinmeier
    0

    Hi Nick,

    Did you add the hostnames in the portal (https://www.s1.umbraco.io/project/PROJECTNAME/hostnames) as well? If you did, does it say "Protected" in the status column?

    You need to add both saietta.com and www.saietta.com in the portal, while you should only add the one you want as the canonical in Umbraco, and add a 301 redirect (or a canonical meta tag on all pages) for the other one.

    Does this make sense?

    /Chriztian

  • Nick 97 posts 514 karma points
    Jun 27, 2023 @ 16:05
    Nick
    0

    Thanks for getting back to me, could you provide an example of a canonical meta tag, is it possible to add a 301 redirect to all non www within the webconfig file?

    These are my current settings:

    enter image description here

    enter image description here

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jun 27, 2023 @ 18:12
    Chriztian Steinmeier
    100

    You can add a Web.config like this:

    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="Remove www from domain" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="www\.saietta\.com" />
                        </conditions>
                        <action type="Redirect" url="https://saietta.com/{R:1}" redirectType="Permanent" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    

    If it's an Umbraco 10+ project it should go into the src/UmbracoProject/ folder.

    If you want to test it first, change Permanent to Found and test to make sure you're getting a 302 response — when you've confirmed it works (i.e. no typos etc.) change it back to Permanent to get a 301 instead.

    /Chriztian

  • Nick 97 posts 514 karma points
    Jun 28, 2023 @ 08:04
    Nick
    1

    Many thanks Chiztian, both your posts helped with the issue.

Please Sign in or register to post replies

Write your reply to:

Draft