Thursday, April 15, 2010
Tuesday, April 6, 2010
PHP Redirect
Change the code on the redirect page to be simply this. You need to replace the URL above with the URL you wish to direct to.header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?>- Be sure that you do not have any text sent to the browser before this, or it will not work. Your safest bet is to simply remove all content from the page but the redirect code.
//this will NOT work, the browser received the HTML tag before the script header( 'Location: http://www.yoursite.com/new_page.html' ) ; ?>
No - Cache
set_time_limit(180000);
header("Expires: Thu, 31 Dec 2020 20:00:00 GMT");
header('Pragma: no-cache');
header('Cache-Control: no-cache');
header('Expires: 0');
header("Expires: Thu, 31 Dec 2020 20:00:00 GMT");
header('Pragma: no-cache');
header('Cache-Control: no-cache');
header('Expires: 0');
Subscribe to:
Posts (Atom)

