http - HTTP 方法的重定向
问题描述
Stackoverflowers,有人可以就以下问题提出建议:
我需要将 http url 方法列表重定向到另一台服务器,当它们被命中时,网站的其余方法不被重定向。你能告诉我如何做到这一点吗?这就是我的意思:
base address = https://example.com
<base address>/methods/asyncwebmethods.ashx/JwtTokenLogin
to be redirected to
<http://bg2-858-lt>/JwtTokenLogin
<base address>/methods/asyncwebmethods.ashx/logout
to be redirected to
<http://bg2-858-lt>/JwtTokenLogin
<base address>methods/betting.ashx/updateRegularCartItems
to be redirected to
<http://bg2-858-lt>/updateRegularCartItems
解决方案
您可以通过多种方式做到这一点。1.简单的jquery来处理点击登录/注销按钮时的动作。2. 在httpd.conf 3. 在servelt 你可以重定向。
推荐阅读
- python - 基于投影矩阵将点云投影到相机平面上
- python-3.7 - 在 Azure DataBrick 上工作的 Hail0.2 问题
- mysql - 如何在 MariaDB 中生成一系列日期?
- c# - 离线和在线时获得不同的MAC地址?
- python - 矢量化 2D 插值
- apache-spark - 根据 Spark RDD 中每个分区的复合键获取最高值
- karate - 'mvn gatling:test' 命令未拾取空手道 argLine 参数
- vue.js - Vue CLI 3 应用程序未在 IE 中加载某些 npm 包
- octobercms - 将文件上传字段添加到 october cms
- java - 如何为我的 SQL 添加 JAVA 时间戳?