arcorun
arcorun
CDCloudflare Developers
Created by arcorun on 5/5/2024 in #pages-help
Need help with redirects.
This question is in relation to Cloudflare pages, probably using the Github integration. If I wanted visitors to example.com + www.example.com permanently redirected to a subpath such as example.com/sub what would be the best way to do it? I have found the 2 dev links below but I'm not sure what approach to take. (1) https://developers.cloudflare.com/pages/configuration/redirects/ (2) https://developers.cloudflare.com/rules/url-forwarding/
4 replies
CDCloudflare Developers
Created by arcorun on 4/30/2024 in #pages-help
Will PHP work with pages?
I was planning on adding a website to Cloudflare pages and had intended on using PHP to add +and edit the same header and footer content across all my static pages, for example something like: <?php include("header.php"); ?> <div id="page-content"> </div> <?php include("footer.php"); ?> I had planned to do this with either drag and drop in the dashboard or via Github but someone just mentioned to me that this PHP method won't work with Cloudflare pages. Is that correct?
5 replies
CDCloudflare Developers
Created by arcorun on 11/11/2023 in #general-help
Pages Rules or Redirects
Hi. I have 2 domains registered with Cloudlfare - what would be the best way to redirect all visitors to exampledomain1.com over to exampledomain2.com? I was going to setup a page rule > URL > (Pick a setting) Forwarding URL > 301 permanent redirect > Destination URL I've also noticed under rules there is a 'Redirect Rules' option so any advice on which would be best - page rules, redirect rules, something else? Thanks!
5 replies
CDCloudflare Developers
Created by arcorun on 9/30/2023 in #general-help
Redirecting www to root
Hi. (1) I'm setting up a blog which suggests setting a root CNAME - https://docs.bearblog.dev/custom-domains/ (2) The docs linked above also say - "If you are using Cloudflare, ensure the proxy (the orange cloud) is turned off." (3) Above steps are fine to set everything up - but if I want to create a page rule to redirect all www.example.com traffic to the root example.com I believe the domain needs to have Cloudflares proxy turned on / enabled which confilcts with what the docs say in (2) above. (4) Any suggestions for setting up the blog on the root of domain and turning the proxy off - but still being able to send everything www to the root? Thanks!
17 replies
CDCloudflare Developers
Created by arcorun on 2/25/2023 in #pages-help
Can I use edge analytics with Pages?
Hi. Pages have a built-in, free web analytics via their JavaScript beacon but I have also seen mention of Edge analytics elsewhere (for anyone on a paid plan) - are edge analytics also available for Pages? ... https://pages.cloudflare.com/ Looks like Edge analytics have a full built in dashboard and would be easy to setup once I'm using Cloudflare's DNS?
9 replies