note 33495 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:47:09 +0000 |
| Subject: | note 33495 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55656@lists.php.net to get a copy of this message | ||
Note Submitter: tlang@halsoft.com
----
Using PHP Version 4.3.2, Apache/1.3.24, Solaris/SPARC (Unix)
I want to redirect some pages to make sure they use https. I had trouble getting this to work:
header("Location: https://" . $_SERVER['HTTP_HOST']
. $_SERVER['REQUEST_URI']);
Browser (MSIE 6) was just getting an empty document. I added CR/LF, and that fixed it.
header("Location: https://" . $_SERVER['HTTP_HOST']
. $_SERVER['REQUEST_URI'] . "\r\n");