www.mywebsite.com hosted on Cloudflare pages, and I’m making a search engine, currently I have it so its
search.mywebsite.comm/search?q= How can I make it so its
www.mywebsite.comm/search?q= even though there on different servers?
I’m not sure about the question exactly here. Can you expand?
You would need to write a Worker that runs on
mywebsite.com/SuperCoolUrl that basically proxies the request to your origin server and returns the result. Something like this example could be a starting point.