Build your first website · Lesson 11

Choose a Domain.
Secure & Maintain.

Give your portfolio a memorable address if you want one, protect the accounts behind it, and learn how to keep the website reliable over time.

Complete beginner2–3 hoursCustom domain optional
A secure photography portfolio connected to a custom domain, version history, and cloud recovery
Lesson 11Safe, professional, recoverable

Your goal

Build confidence
after launch.

A reliable website is not one that never changes. It is one with a clear address, protected access, a sensible routine, and a safe way back.

Four layers of reliability

01DOMAINEasy to reach
02HTTPSEncrypted
03ACCOUNTSProtected
04HISTORYRecoverable
Choose your addressUnderstand HTTPSProtect account accessRecover safely

You can complete everything without purchasing a domain. Your existing Cloudflare address remains a valid public website address.

01

15 minutes

Understand Domains & Website Addresses

A domain is the memorable address people type to reach your website. It changes how the site is shared—not the quality of the work inside it.

https://myphotography.com/portfolio
SECURE CONNECTIONCUSTOM DOMAINPAGE PATH
ALREADY WORKS

Cloudflare address

your-project.workers.dev

Public, functional, and free to keep. No purchase is required.

OR
◎
OPTIONAL

Custom domain

myphotography.com

Easier to remember and share, with periodic registration renewal.

SHORTERmyphotography.com
↔
ALTERNATIVEwww.myphotography.com
YOUR ACTIVITY

Write three possible portfolio names.

Look for the name that is easiest to remember, say aloud, spell, and share.

Success check

02

20–45 minutes

Choose & Connect Your Domain

Both routes complete this module. Keep your existing address, or connect a custom one only after reviewing availability, current price, and renewal conditions.

OPTION A

Keep Cloudflare

  1. Find the published Worker.
  2. Copy its public address.
  3. Open it and test the site.
READY NOW
OPTION B
.com

Use your own domain

  1. Check availability and prices.
  2. Register when you are satisfied.
  3. Connect it as a Custom Domain.
OPTIONAL
YOUR DOMAINmyphotography.com
→
Custom Domain
→
✓Portfolio
  1. 01

    Add the custom domain

    Open your portfolio Worker, find Custom Domains, enter the address, and follow Cloudflare’s instructions.

  2. 02

    Choose the main address

    Redirect www to non-www—or the reverse. The redirecting hostname also needs an appropriate proxied DNS record.

  3. 03

    Wait, then test

    Confirm homepage, photographs, navigation, mobile layout, and HTTPS. Keep the old working address during validation.

  4. 04

    Check the admin

    Review Decap Turbo origins or admin URLs, then test sign-in at the new /admin/ address.

SECONDARYwww.myphotography.com
301
PREFERREDmyphotography.com
Review SEO before changing it

“Review my Astro SEO settings for my new domain. Check canonical URLs, sitemap, internal links and redirects. Explain the changes before making them.”

Preferred domainCanonical URLsSitemap addressesOld URL redirectsAccessible pages

Success check

03

15 minutes

Understand HTTPS & Website Security

HTTPS encrypts information exchanged between a browser and your website. It protects the journey—not every decision made at either end.

Browser
ENCRYPTED CONNECTION
https://••••••••⌁
Website
HTTPS DOES

Protect data in transit

It helps prevent information from being read or altered while travelling between browser and website.

HTTPS DOES NOT

Prove the site is trustworthy

It cannot replace strong passwords, account protection, safe content, or sound judgment.

OPEN YOUR PORTFOLIO
https:// is presentNo certificate warningPages and photos load/admin/ is secure

Success check

04

20 minutes

Protect Your Accounts & Admin Access

The website is supported by a chain of accounts. Protect every important link—especially the email account that can recover the others.

01Unique passwords

Use a strong, different password for every account. A password manager can help.

02Two-factor authentication

Enable a second sign-in step wherever it is supported.

03Recovery codes

Store them securely—never inside public files or the GitHub repository.

04Recovery details

Keep recovery email, domain contact, and renewal information current.

/admin/
PUBLICLY REACHABLE PAGE≠PUBLIC PUBLISHING ACCESS
Only authorized accounts should be able to publish.

Success check

05

25 minutes

Maintain & Update Your Website

Maintenance should be calm and proportionate. Routine content belongs in the CMS; technical changes begin with synchronization and explanation.

D
CONTENT

Use Decap CMS

Open admin → edit → save → verify the public page.

TECHNICAL

Use Codex

Synchronize → inspect → understand → update only what matters → test.

Inspect before updating

“Check my Astro project for important updates, security issues and broken dependencies. Explain what needs attention before changing anything.”

EVERY PUBLISHConfirm the live result
MONTHLYPages · photos · links · CMS login
EVERY FEW MONTHSDependencies · security · connected apps
BEFORE RENEWALDate · payment · contact details
Review + commit
→
Push
→
Deploy
→
✓Test site + CMS
YOUR ACTIVITY

Run one small health check.

Open one page on desktop and mobile. Check its photographs, links, layout, and your CMS login.

Success check

06

30 minutes

Fix Problems & Restore Previous Versions

First identify where the problem lives. Then choose between correcting the project’s source history and temporarily restoring an earlier live deployment.

WEBSITE WON’T OPENCloudflare + domain
CHANGE IS MISSINGGitHub + deployment
PHOTO IS MISSINGUpload + file path
CMS LOGIN FAILSTurbo permissions + config
DESIGN IS BROKENRecent commits + deploys
SOURCE HISTORY

GitHub

Corrects project files for future deployments and can create a safe corrective commit.

≠
LIVE HISTORY

Cloudflare

Can quickly serve an earlier deployment, but does not change the source files in GitHub.

URGENT · SITE BROKEN

Restore service first

Use an appropriate Cloudflare rollback if available, then investigate and correct GitHub before the next automatic deployment.

SMALL · SITE STILL WORKS

Correct the source

Create a focused Git fix, test it locally, and publish through the normal workflow.

Investigate without changing

“Identify which change caused this problem. Explain how to safely undo it without losing unrelated work. Don’t modify anything yet.”

SAFE PRACTICE · DO NOT ACTIVATE ROLLBACK
Read a previous Git commit→Find Cloudflare deployment history→Locate the rollback control
FINAL KNOWLEDGE CHECK
  1. What is a domain name?
  2. Why might www need a redirect?
  3. What does HTTPS protect?
  4. Why do recovery codes matter?
  5. Where do you check a failed deployment?
  6. How do GitHub history and rollback differ?
  7. Why does rollback not fix GitHub?

Success check

End of lesson 11

Your portfolio is built to last.

You can choose a clear address, understand HTTPS, protect account access, follow a useful maintenance rhythm, diagnose problems, and recover without erasing unrelated work.

AddressConnectEncryptProtectMaintainRecover
Coming next · Lesson 12From Beginner to Independent Web Creator

Turn a future website idea into a realistic plan, choose suitable tools, assess its risks, and define your next learning steps.