如何从旧网址移动到新网址 [英] How to move from Old url to new URL
本文介绍了如何从旧网址移动到新网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想如果在浏览器的地址栏上有任何体型旧网站网址并输入那么我的新网站网址将会打开。
那我怎么能从代码管理这个。我有HTML网站。
I want to that if any body type old website url on address bar of browser and enter then my new website url will open.
So how could I manage this from code. I have HTML website.
推荐答案
< META HTTP-EQUIV =refreshCONTENT =seconds; URL = the-other-url>
这将有助于重定向到新的
<META HTTP-EQUIV="refresh" CONTENT="seconds;URL=the-other-url">
this will help in redirecting to new
现在你必须使用javascript
你的html中正文标记前的
do
now you have to do using javascript
before body tag in your html
do
window.location="your new site address"
问......:)
regards....:)
这篇关于如何从旧网址移动到新网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文