.htacess and SDK in root directory

I just found out about CloudFlare Pages about a day ago. I’m considering using CloudFlare (CF) Pages to host a static website. I’m not sure how CF Pages compares to a more traditional web hosting account that uses an Apache Web Server. Will I be able to use an .htacess file or upload an SDK to the root directory? Or does CF Pages not support these technologies?

Thanks!

I’m confused about what you mean by uploading an SDK. Cloudflare pages will generate static content from your GitHub repository using the framework specified. You never have direct access to the server to upload content.

Hmmm. Interesting. So it’s not like a traditional web hosting account at all. So things like an .htaccess file won’t work? I’m not familiar with GitHub yet so I guess I need to research that now.

It basically is a Cloud SSG (Static Site Generator) which generates a site like Hugo, Gatsby, Next.js, Jekyll, Nuxt, Hexo … then grabs the output folder and serves it statically.
Also it requires a GitHub repo.

No, but it offers something like it, see: https://developers.cloudflare.com/pages/platform/headers
But keep in mind, that this works a little different and is not 100% compatible to a .htaccess or a nginx.conf.

For more info read here: https://developers.cloudflare.com/pages/

This helps me understand better. Thank you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.