Meta/HTML Redirect by eckert


Not the best method, but it works.


Put this at the beginning of your document:

HTTP/1.1 301 Moved Permanently
Location: http://www.example.org/
Content-Type: text/html
Content-Length: 174

Put this in the <head> of your document:

meta http-equiv="refresh" content="0;url=http://yourdomain.com"

If you’re not moving things permanently, you can use the following codes in place of “HTTP/1.1 301 Moved Permanently”:

  • 300 multiple choices (e.g. offer different languages)
  • 302 found (e.g. temporary redirect)
  • 303 see other (e.g. for results of cgi-scripts)
  • 304 not modified
  • 305 use proxy
  • 307 temporary redirect

But a better method by far is the more permanent .htaccess redirect.

Tags: ,

One Response to “Meta/HTML Redirect”

  1. Joelle Says:

    When you say “put this at the beginning of your document”, how do you mean? PHP isn’t permitted, nor anything else with Typepad… meta-refresh is the only way. I want to make sure I’m thorough, but you don’t really make it clear if that content needs to be within some kind of tags or where it should go. Beginning where? Above the HTML tags? Within them? Inside them? I’d welcome your clarification. :) Thanks!

Leave a Reply


It’s Called Web Design is sponsored by Seeing Interactive and powered by WordPress
Entries (RSS) and Comments (RSS).
53 queries. 0.534 seconds.