6.1 Plesk(9)如何创建 URL 转发
发布人 David Jiang on 10 March 2010 10:27 AM

『URL转发并不需要在您的控制面板上作任何操作。您只需要通过脚本的功能就可以达到该效果。我们为您提供了几种可以实现URL转发的方法,您可以任取一种。
例如:
“abc.domain.com -> http://domain.com/test.html”

PHP 方法:
<?php
header('location:http://domain.com/test.html');
?>

JavaScript 方法:
<script type="text/javascript">
location.href='http://domain.com/test.html';
</script>

HTML 方法:
<meta http-equiv="refresh" content="0;URL=http://domain.com/test.html" />

(0 投票)
这是篇有帮助的文章
这篇文章没有帮助