/    Sign up×
Community /Pin to ProfileBookmark

So I redirect www to non www domain.

Now a developer tells me he can not make cloudfront show www.example.com/image.jpg

he says it must be some other subdomain.

Is that true?

to post a comment

2 Comments(s)

Copy linkTweet thisAlerts:
@noobforwebauthorSep 09.2021 — I just want the url to the images to look exactly the same as if it is a regular wordpress website without a cloudfront

so best option would be just example.com/image.jpg
Copy linkTweet thisAlerts:
@sibertSep 10.2021 — > @noobforweb#1636766 he says it must be some other subdomain.

I did it this way:

  • 1. Added www as a subdomain at my regular DNS provider.

  • 2. Forward ns (name server) records from my regular DNS vendor to Cloudflare

  • 3. Add A records (Not CNAME) for both my domain and www (as a subdomain) pointing to my web server's IP-address

  • 4. Redirect at my web server either Apache (.htaccess) or Nginx (default) from www to my domain (without www)


  • https://www.go4webdev.org/img/webdev.png

    https://go4webdev.org/img/webdev.png
    ×

    Success!

    Help @noobforweb spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 4.25,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...