Skip to content
Blog

Host a PDF on your own domain and link it in a QR code

Put a PDF at your own domain and a QR code that opens it, with no website build. Three routes, DNS records, and how to keep printed codes working.

The Liite team8 min read

Short answer

Upload the PDF to a host that serves it at a stable URL, point your domain at that host, and make the QR code from the final link, ideally a short link you can re-point later. On Liite, an uploaded PDF gets a viewer and an address on <slug>.liite.site, and Pro lets you put it on your own domain.

You bought a domain, maybe with hosting, and you want one thing: a PDF at a clean address like yourdomain.com/menu, plus a QR code that opens it. Your host's panel only talks about building websites, and a search for "host pdf on my domain" or "pdf to qr code link" mostly turns up advice to use a cloud-drive link.

Why it happens

A PDF is a file, and any web server can serve one. The friction comes from three separate jobs that hosting panels don't connect for you:

  • Storing the file somewhere with a public address.
  • Connecting the domain. A domain does nothing until DNS records point it at a server. A domain with no records pointing anywhere shows an error, however good the PDF is.
  • Making the QR code from a URL that won't change.

People who ask this on community forums are often told to put the PDF in Google Drive and shorten the link. That works for a quick share, but the link opens a Drive page rather than your document, and it lives at a Drive address, not your domain. If sharing settings change or the file moves, the code stops working.

The QR detail matters most before printing. A static QR code has the URL baked into the pattern. If the PDF's address changes, every printed code breaks. A code that encodes a short link you control can be re-pointed later. The trade-off is covered in static vs dynamic QR codes.

Pick a route

RouteBest whenYour domain?Editable QR?
Existing hosting, upload by file manager or FTPYou already pay for hosting with file accessYes, yourdomain.com/file.pdfOnly with a short link
Liite uploaded PDFYou have no file access, or want a viewerYes, on Pro and upYes, with a short link
Cloud-drive share linkOne-off, informal shareNoNo

Step-by-step fixes

Route one: upload to your existing hosting

  1. Open your host's file manager or connect by FTP, and go to the public web folder. Its name varies by host, so check your host's help page.
  2. Name the file in lowercase without spaces, such as menu.pdf. Spaces become %20, which makes the address ugly and easy to mistype.
  3. Upload it. The address is now yourdomain.com/menu.pdf.
  4. Open that address in a private browser window to confirm it loads.
  5. Make the QR code from that exact URL (see below) and test it before printing.

Replacing the file

If you later upload a new version under a different filename, the old printed codes point at the old file. Keep the same filename, or put a short link in between.

Route two: upload the PDF to Liite and connect your domain

  1. Sign up and create an uploaded site by uploading your PDF. You get an address at <slug>.liite.site.
  2. Open it to check the viewer: thumbnails, zoom and text search. You can switch the download button off if you only want people to read the document.
  3. For your own domain, you need Pro or higher, with one custom domain per site. Open the site's domain settings and enter your domain. You can enter the root domain or the www version; the other redirects to it.
  4. At your registrar, add the DNS records Liite shows you. For a root domain, that is an A record:
Type: A
Name: @
Value: 76.76.21.21

For a subdomain such as docs.yourdomain.com, use a CNAME:

Type: CNAME
Name: docs
Value: cname.vercel-dns.com
  1. Wait until the status turns Active. The HTTPS certificate is set up automatically. See custom domains for details.
  2. To replace the PDF later, upload again. The address stays the same, and old versions are kept for rollback, so a printed QR code keeps working.

One domain, one job

A custom domain serves one site or one short-link setup at a time. If you want both a PDF site and short links, use a subdomain for one of them.

Limits on the free plan

FreePro
Custom domainNo1 per site
Upload size per uploaded site3 MB25 MB
Offline after last publish7 daysNever
Search enginesAlways noindexnoindex only for the first 24 hours

A Free uploaded site also needs a card on file to publish. Starting the Pro trial counts, and the card isn't charged unless you buy a plan. Because a Free site goes offline after 7 days, it suits a test, not a printed code. Uploads also have to fit your media storage quota. More in uploaded sites.

If you downgrade later, custom domains are disconnected and the site stays at its liite.site address, so plan for that before printing on a custom domain.

Make the QR code

Whichever route you took, you now have one URL. There are two ways to turn it into a code.

Static code

Paste the URL into the free QR code generator or the PDF QR code generator. It runs in your browser with no account. The code never expires, but you can't edit where it points after printing.

Editable code

Create a short link whose destination is the PDF's address, then use the QR code that comes with it. It encodes the short link, so you can change the destination later and the printed code still works. You can download it as PNG or SVG, and it can be colored (no logo or shapes). Scans are counted separately from clicks.

These QR codes don't expire and aren't tied to a plan. They keep working while the link exists and hasn't been ended by a schedule, a click limit or a safety suspension. Short links need an account. If you connect a short-link domain (Pro and up), the link can read yourdomain.com/<code>. Be careful: if that domain is dropped later, its links move to liite.co/x/..., and codes printed with the custom domain stop working.

Test like a visitor

Scan the finished code with two different phones, once on mobile data and once on Wi-Fi, and print a test copy at the real size. The guide on testing a QR code lists what to check.

Checklist before you print

  • The PDF opens in a private browser window at the final address.
  • The filename or slug is lowercase with no spaces.
  • You're on a plan that doesn't expire the site (not a Free uploaded site).
  • The QR code encodes the address you intend to keep, or a short link you control.
  • You scanned it on at least two phones.
  • The printed size is large enough to scan; see minimum QR code size.

What won't help

  • A cloud-drive share link as the final address. It opens a vendor page, not your domain.
  • Pointing a domain at nothing. No DNS records means an error page.
  • Printing before testing.
  • Expecting a Free uploaded site to last. It goes offline after 7 days unless you republish or upgrade, and then answers with "This site has expired".

If nothing works

Contact the party that owns the failing step: your registrar for DNS records that won't save, your host for a folder or FTP problem, or Liite support if the domain stays pending after the records are in. Include the exact domain, the records you added (type, name, value), the time you added them, what the status shows, and a screenshot of any error.

Subject: PDF not loading on my domain

Hi, I'm trying to serve a PDF at docs.example.com.
I added a CNAME record (name: docs, value: cname.vercel-dns.com)
at my registrar on [date and time]. The domain status still shows
[status], and opening the address gives [exact error text].
The PDF is also reachable at [slug].liite.site. Could you check
what is missing? Screenshots attached.

DNS changes can take time to spread, so check the status again after a while before escalating.

Common questions

Can I host a PDF on my domain without any website?

Yes. A domain only needs to point at a server that serves the file. Either upload the PDF into your host's public folder, or upload it as a Liite uploaded site and connect the domain.

Does the QR code expire?

A static code never expires, because it holds the URL itself. A Liite short-link QR code keeps working while the link exists and isn't ended by its schedule, click limit or a safety suspension. What can break is the PDF's address, not the code.

Can I replace the PDF without reprinting?

Yes, if the address stays the same. On Liite, uploading again keeps the address. On your own hosting, overwrite the file with the same name, or point a short link at the new location.

Will the PDF show up in Google?

Not on a Free uploaded site, which is always noindex. On paid plans it is noindex only for the first 24 hours after the first publish.

If you'd rather not deal with this again

An uploaded PDF on Liite gives you the viewer, a stable address you can put on your own domain with Pro, and a short link with an editable QR code, all in one account. It doesn't run server code, so it suits documents and static sites, not applications. The post on how to put an HTML file, a zip or a PDF online walks through the upload step by step.