chyoong commented on issue #8098:
URL: https://github.com/apache/apisix/issues/8098#issuecomment-1280601774

   1. Add a new route
   2. Change the redirection to custom and enter the domain name to be 
redirected
   3. Add advanced matching criteria and fill in related rules (the rules with 
vars are higher than those with https).
   4. The specific code is as follows:
   ```json
   {
     "host": "www.test.com",
     "vars": [
       [
         "http_user_agent",
         "~*",
         "Mobile"
       ]
     ],
     "plugins": {
       "redirect": {
         "ret_code": 301,
         "uri": "https://www.baidu.com";
       }
     }
   }
   ```
   


-- 
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