本站有闲置空间

html页面跳转

2012-12-25 tomeqiu 技术原创

1、最简单的

<head>
<meta http-equiv="refresh" content="2;url=/blog/index.php">
</head>

2、PHP

<?php
Header("HTTP/1.1 301 Moved Permanently");
Header("Location:/blog/index.php");
?>

3、.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.dumiqiu.cn$ [NC]
RewriteRule ^(.*)$ http://www.dumiqiu.cn/$1 [L,R=301]

标签: 页面跳转 html

发表评论:

Powered by emlog  数据库调用 6次 加载耗时 21.49mssitemap
Free Web Hosting