6. Redirection Based on User Agent
Response
Hi! José Miguel from Cloudflare Support here.
You're right — Page Rules can't match on user agent headers. But we can achieve this using a
Single Redirect Rule in Cloudflare.
You'll want to create a redirect rule where the condition is:
http.user_agent contains "MSIE 8.0"
Then set your desired redirect target URL.
Thought Process
Page Rules don't support matching against request headers like user-agent. Knowing that, I looked into the Redirect Rules feature under Cloudflare Rules.
Since this is a static condition and not something dynamic or needing complex logic, a Single Redirect works best.
Tools I Would Use
- Cloudflare Dashboard — to create and configure the redirect rule
- curl -A — to test and simulate different user agents