For Workes & Pages, what is the name of the domain?
thescout.online
What is the error number?
404
What is the error message?
This object could not be viewed
What is the issue or error you’re encountering
When I added a custom domain to the R2 bucket and activated it, the website encountered an error: “Error 404, this object cannot be viewed, you are not authorized to view this object.”, I’m using a Webkul extension for the Magento 2 website and I’m using now the link of R2.dev since the custom domain is not working but the site is SLOW and slower than using the file system as file storage
Please keep in mind that R2 is not for dynamic websites. It’s for serving static files only. And if you’re getting a 404, it’s because it’s not finding an index.html file in the root directory.
R2 actually doesn’t support index.html anyway, it’s for storing files not for storing websites. The 404 is because there is no handling for the root, you need to visit the path of the file.
If you want to host a static website you can use Cloudflare Pages instead.
I’d hope that once you got past home, everything would be linked up properly. Though you could rig up Custom Error Responses for 404s if you’re on a paid plan.
At that point, one should probably be using Pages instead.
I wanted to provide more details about the application I’m using. I’m running Magento 2 with a WebKul extension for Cloudflare R2. The main issue I’m encountering is that after activating R2, the site has become slower instead of faster. When opening any page, the browser hangs for a period before the request is submitted to the server. You can observe this in the developer tools when accessing the site at this link: https://www.stg.thescout.online.