Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Specific redirection by user agent

$
0
0
Hello,

I have an issue I can't solve :'(
I would like to generate a redirection by user agent.

I have a physical file : domain.com/stats.xml
I would like to serve this file for ALL except for browser with a specific User Agent (ABC for this example).

So, if User Agent = ABC, user should be redirect to specific-stats.xml
In other case, the file stats.xml has to be served.

I have tried my options. Impossible to find a solution.

Is it possible ?

Thanks
Carlito

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>