Trying to change host header

Trying to change the host header for a web site hosted behind cloudflare. We have the business plan with cloudflare (not using load balacing, just proxying currently). Basicly all I want to do is the following:

Client enter www.example.com once it hits cloudflare I want to change the host in the header from www.example.com to www.newexample.com

Ive tried everything and I cant get it to work. Any suggestions.

All of the DNS is setup correctly.

Thanks

Sarvjit

Why whould you change the Host header?

Why not send 301/302 redirects so from www.example.com to www.newexample.com?

2 Likes

Only Enterprise plans are allowed to change Host Headers, as it’s often used for nefarious purposes.

We dont want to show that to the end user/client. URL should remain original to what the client entered as the URL.

Thats disappointing.

The alternative would be using Cloudflare Workers to fetch contents from a new domain while retain the domain name shown to the user.

Thanks I will give that a shot.

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