| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| The original NP Emo Kid | Redirecting? 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? |
| |
| | #8 (permalink) |
| NamePros Member | 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! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Typo Redirecting | Premium | Domain Name Discussion | 3 | 03-31-2005 05:55 PM |
| Advice on redirecting domains to affiliate progams | brassneck | Affiliate Talk | 5 | 05-27-2004 10:38 PM |
| question for gurus - redirecting directories | armstrong | Programming | 4 | 05-22-2004 09:33 AM |
| Q. about redirecting traffic domain | daweller | Parking & Traffic Monetization | 3 | 04-28-2004 11:27 PM |
| Redirecting Traffic | FruitFish | Marketing Techniques | 2 | 09-04-2003 01:49 AM |