chyoong opened a new issue, #8098:
URL: https://github.com/apache/apisix/issues/8098

   ### Description
   
   For example:
   ```nginx
   location / {
       if ($http_user_agent ~* "(Android|iPhone|iPod|Symbian|BlackBerry|Windows 
Phone|Mobile|J2ME)") {
         rewrite ^(.*)$ https://www.baidu.com$1 permanent;
       }
   
       proxy_pass http://upstream;
   }
   ```
   Route config:
   ```json
   {
     "uri": "/*",
     "name": "www.test.com",
     "desc": "www.test.com",
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH",
       "HEAD",
       "OPTIONS",
       "CONNECT",
       "TRACE"
     ],
     "host": "www.test.com",
     "plugins": {
       "redirect": {
         "http_to_https": true
       }
     },
     "service_id": "429740493102909219",
     "labels": {
       "API_VERSION": "v1",
       "fe": "FE"
     },
     "status": 1
   }
   ```
   
   
   If `$http_user_agent` matches 
`(Android|iPhone|iPod|Symbian|BlackBerry|Windows Phone|Mobile|J2ME)` in the '/ 
'path of the same domain name, go from 301 to https://www.baidu.com
   
   Although I did see 'traffic-split ', it only supports upstream processing, 
not domain name jumping
   
   Excuse me, how do I operate?
    
   
   
   ### Environment
   
   ### Environment
   
   - APISIX version (run `apisix version`): apache/apisix:2.99.0-debian
   - APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-alpine
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to