URL重定向到另一个网址 [英] Redirect URL to another URL

查看:1058
本文介绍了URL重定向到另一个网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情形,并不能确定如何去解决它。

主要有以下几个页面,用户可以通过在那里他们的电子邮件中存在这个网址去。

例如: HTTP://www.abc.example/yourdetails.html

我的问题是,我现在已经被告知,这整个Web应用程序被移动到一个新的领域,即。

  HTTP://www.xyz.example/yourdetails.html

假设有与接入网络中的两个域(Int​​ranet)中没有问题,我怎么能在一封电子邮件中不再是正确的链接实际上调用新的URL的链接上点击时,将用户重定向:

  HTTP://www.abc.example/yourdetails.html

我基本上要保证,即使用户在他们的电子邮件旧网址,在这个旧的URL点击时,竟跳了新的正确的URL。

希望这是有道理的。

感谢。


解决方案

  1. 如果该网站是不会改变的结构,可以在DNS中的xyz.com域指向abc.com。


  2. 我觉得你可以配置apache,使用modrewrite,改写从旧域到新的呼叫。你可能不能够做到这一点,如果域在不同的服务器上。


  3. 您可以在 http://www.xyz.com/yourdetails.html编辑页面并添加一个重定向头(可能的解释)重定向到新的一页。


I have the following scenario and unsure how to go about solving it.

Basically have the following page that a user can go to by where this URL exists within their email.

For example: http://www.abc.example/yourdetails.html

My question is, I have now been told that this whole web app is being moved to a new domain, i.e.

http://www.xyz.example/yourdetails.html

Assume there are no issues with accessing the two domains within the network (intranet), how can I redirect the user when clicking on a link in an email that is no longer the correct link to actually call the new URL:

http://www.abc.example/yourdetails.html

I basically want to ensure that even though users have old URLs in their emails, when clicking on this old URL, actually hop over to new correct URL.

Hope this makes sense.

Thanks.

解决方案

  1. If the site is not changing structure, you can point the xyz.com domain to abc.com in DNS.

  2. I think you can configure apache, using modrewrite, to rewrite calls from the old domain to the new one. You might not be able to do this if the domains are on different servers.

  3. You can edit the page at http://www.xyz.com/yourdetails.html and add a redirect header (and maybe an explanation) to redirect to the new page.

这篇关于URL重定向到另一个网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆