2025/12/28
Category: Linux
Other Categories: Personal, Windows, All
I host this site as a static site on Cloudflare and it costs me nothing to do this. I previously used Cloudflare Pages to do this but they recently went to Workers. I discussed this before but that did not work for me as expected. Here is how I got things working again.
Before I used the file name wranger.json and now I use wranger.jsonc which really does not matter. What did matter below was "routes": [{ "pattern": "quotedstrings", "custom_domain": true }],. That line caused so much trouble for me. I removed it from the file. Instead I added a custom domain www.quotedstrings.com to the quotedstrings settings for the worker on Cloudflare's site. I have my domain hosted with them so before doing that I had to remove entires in the DNS record that had the words quotedstrings in them.
{
"name": "quotedstrings",
"compatibility_date": "2025-12-10",
"assets": {
"directory": "_site",
"not_found_handling": "404-page"
},
"routes": [{ "pattern": "quotedstrings", "custom_domain": true }],
}
The file now looks like the below. Apparently I could have changed the line to "routes": [{ "pattern": "www.quotedstrings.com", "custom_domain": true }] , and done the same thing I did on Cloudflare's site. But my DNS record for my domain is on their site so I just did it all there.
{
"name": "quotedstrings",
"compatibility_date": "2025-12-10",
"assets": {
"directory": "_site",
"not_found_handling": "404-page"
}
}
After that everything else on the previous post works fine.
But if I do a DNS search on "quotedstrings.com" I get nothing. But if I do one on "www.quotedstrings.com" I get results. I may have to try to add another custom domain for quotedstrings.com and see if that helps in a DNS search. Really I can add another custom domain?
It worked fine. You can now reach the site using "https://www.quotedstrings.com" or "https://quotedstrings.com" like it used to work. The DNS search works for both too.
Wish to add a comment? Please include your name to display in your comment or anonymous.
Your email address will never be shared with anyone.
Email me a comment to post it.