---
title: "http header头文件标头"
author: "adrianSet"
date: "2013-01-25T09:56:11Z"
tags: []
categories: ["Web前端"]
slug: "http-header"
draft: false
lastmod: "2013-01-25T09:56:11Z"
id: 1775497
url: "https://adrianset.iteye.com/blog/1775497"
---

http header头可以设置的参数 .// ok header('HTTP/1.1 200 OK'); //设置一个404头: header('HTTP/1.1 404 Not Found'); //设置地址被永久的重定向 header('HTTP/1.1 301 Moved Permanently'); //转到一个新地址 header('Location: http://www.example.org/'); //文件延迟转向: header('Refresh: 10; url=http://www.example.org/'); print 'You will be redirected in 10 seconds'; //当然，也可以使用html语法实现 //