You are here: Re: redirect on apache 2.0 « PHP Programming Language « IT news, forums, messages
Re: redirect on apache 2.0

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация