Re: redirect on apache 2.0
- From: JDS <jeffrey@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 14:33:56 -0400
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@xxxxxxxxxxxxxxx
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
.
- Follow-Ups:
- Re: redirect on apache 2.0
- From: Andy Hassall
- Re: redirect on apache 2.0
- References:
- redirect on apache 2.0
- From: Akimeu
- redirect on apache 2.0
- Prev by Date: Re: Does using index.php affect search engine rankings?
- Next by Date: Re: Images in *area
- Previous by thread: redirect on apache 2.0
- Next by thread: Re: redirect on apache 2.0
- Index(es):
Relevant Pages
|
Loading