|
-
May 11th, 2006, 04:13 AM
#4
Re: Redirecting using meta tags.
 Originally Posted by mar_zim
Vis what about those 301 redirect? Is it the header redirection?
header("location: mypage.php");
I've used meta tags (<meta http-equiv='refresh' content='5;url=$url'>) for a certain reason because when I used header function it will prompt me an error bec. there were some output send which violates the rule in using the header function. Does my page will be messy coz I always used the meta tags? I don't know what will happend in the long run using the meta tags.
Your problem with output can be solved easily. Code your scripts better. Ideally you want all you output to occur after processing. If you really can't rewrite the code, start an output buffer in the first line of the script using:
Like I said already. Use a header to make redriects as the client is not required to act apon the meta tags. With a HTTP redirect, the status code is changed to 3xx, whereas when using a meta tag the status code will be 200 and you run into the caching problems I mentioned earlier.
Last edited by visualAd; May 11th, 2006 at 04:21 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|