|
Posted by JDS on 06/28/05 21:33
On Tue, 28 Jun 2005 09:54:57 -0700, Akimeu wrote:
> Hello all... I have a site running http/https on it. I would like to
> redirect all http incoming requests to the https (SSL). Unfortunately, what
> I'm trying does not work.... I basically created an index.php in the
> DocumentRoot, modified http.conf file and restarted apache w/out any luck.
>
> The contents of the index.php file are as follows:
>
> <?
> header("location:https://sitename.com/index.html");
> exit;
> ?>
>
> What I get back is a blank, white web page.
>
> Thanks for any assistance.
>
> Al
What are the contents of "index.html"?
I think (and I may be wrong) that headers are case-sensitive. Try
"Location: https://blah.blah.blah"
Also, to debug, try to see if the header() redirection is working at all.
Try:
<?
header("Location: http://www.ibm.com");
exit;
?>
(or some other "real" website/URL)
Does that work?
Then, test to see if PHP is even working. Replace everything with:
<?phpinfo()?>
later...
--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
Navigation:
[Reply to this message]
|