重定向网站? [英] Redirect a site?

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

问题描述

首先,我想向大家问好。这是我在这个论坛上的第一篇文章。我是房地产市场崩盘的产物。我建了20年的房子,现在我正在努力学习网站。所以我在这方面是一个全能的菜鸟,但我拒绝放弃我的学习。我的问题很简单。我有一个我购买的域名,我已经注册了托管服务。我有另一个网站,如果通过我已注册的商业。我的问题是网址根本不是很专业。它与我家的商业名称不符。我想使用我购买的域名,只是让网址自动重定向到我的其他网站。任何帮助将不胜感激!

解决方案

简单易行,见下文。 REFRESH =直到重定向的秒数,这个例子是立即的。



































<!DOCTYPE html公开]; - // W3C // DTD XHTML 1.0过渡// EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< html xmlns = " http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = " Content-Type" content = "为text / html; charset = utf-8" />
< 标题 > Untitled 1 < / title >
< meta HTTP-EQUIV = " REFRESH" content = " 0 ; url = http://你的网址在这里/" /> < font style ="font-size:11px">
< / head >
< body >
< / body >
< / html >

First of all I would like to say hello to everyone. This is my first post on this forum. I am a product of our crash of our housing market. I built houses for 20 years and now I am trying to learn web sites. So I am a totall noob at this but I refuse to give up on my learning. My question is simple. I have a domain name I have purchased and I have signed up for a hosting service. I have another web site that if through a buisness I have signed up for. My problem is that the url is not very professional at all. It does not match the name of my home buisness. I would like to use the domain that I purchased and just have the url redirect me automatically to my other site. Any help would be greatly appreciated!

解决方案

Simple to do, see below.  REFRESH = how many seconds until redirect, this example is immediate.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Untitled 1</title> 
<meta HTTP-EQUIV="REFRESH" content="0; url=http://your url here/" /> 
</head> 
 
<body> 
 
</body> 
 
</html> 
 


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

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