dongle7882 2010-12-01 08:51
浏览 21
已采纳

htaccess URL重定向

I would like to redirect an url(A) to another url(B). When url(B) loading, I need to run some code and it might redirect to another url(C).

Example :- Like paypal notification url, I need to run some code in the background when a user browses specific type urls.

Any ideas on how to do this?

  • 写回答

2条回答 默认 最新

  • douzhanrun0497 2010-12-01 08:58
    关注

    You can redirect A to B with a Redirect 301 A B, and in B's script don't send headers until you have to redirect (or don't). If you have to redirect, send a header("Location: " + $c) and then exit().

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何使用canvas在图片上进行如下的标注,以下代码不起作用,如何修改
  • ¥15 Windows 系统cmd后提示“加载用户设置时遇到错误”
  • ¥50 vue router 动态路由问题
  • ¥15 关于#.net#的问题:End Function
  • ¥15 无法import pycausal
  • ¥15 VS2022创建MVC framework提示:预安装的程序包具有对缺少的注册表值的引用
  • ¥15 weditor无法连接模拟器Local server not started, start with?
  • ¥20 6-3 String类定义
  • ¥15 嵌入式--定时器使用
  • ¥20 51单片机学习中的问题