The first two examples are the same, the second has a syntax error, but the concept is the same.
Now what differs from the first 2 examples and the last? The last one doesn't tell search engines that the page is permanently moved and they need to update their index.
So if you want to indicate a permanent move, use the first example (the second example is moot, since it is the same but with syntax errors).
Bookmarks