Redirecting?

SpaceshipSpaceship
Watch

liam_d

The original NP Emo KidEstablished Member
Impact
25
What is a good way to do delayed redirection?

If you look on a lot of forums after posting you get a thank you with a link to go to the page to see your post and it auto goes to that page after time, now ive been told meta refresh is a no no as apparently a lot of ie users disable it. Well i cant use header redirect (php) as i always get errors like headers already sent so what else is there to use?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Meta refresh is the only way i can think of to use :(
 
0
•••
javascript, is really the only other option.
 
0
•••
i think google will treat equally to the two listed above where as yahoo will treat better to meta refresh
 
0
•••
Ill have to look into it a bit more then methinks
 
0
•••
It depends.

On what are you going to use redirect on ? Give some more information.
 
0
•••
I explained in my first post.
 
0
•••
In my opinion, the "correct" way to do this is to use meta-refresh as it is the ideal tool created for exactly what you want to do. If users have disabled it, that's a good indication that they don't want to be redirected and may not appreciate it much of you try to bypass that -- so just offer a link as alternative way to get to the next page.

If you still want to use PHP header redirects, you just need to make sure that there is absolutely no whitespace or content being sent to the browser before the header. All http headers including the location header generated by PHP's header function *must* come before anything is sent to the browser. Make sure the "<?" that opens your script has no whitespace before it. Good luck!
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back