LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian redirect apache to apche-ssl (https://www.linuxquestions.org/questions/linux-software-2/debian-redirect-apache-to-apche-ssl-369672/)

klyshi 10-04-2005 09:43 AM

Debian redirect apache to apche-ssl
 
Hi,

I have apache and apche-ssl packages instelled on debian 3.1 sarge.

I want users to access my pages using https only. I can remove apache and leave only apache-ssl but I know for sure that lot of my website visitors will not put https in from of the website address.

So my question is that how can I redirect http to https for all my pages?

I tried using php script header but it does not work

header("Location: https ://web_address/anotherdir/start.php");

Ay idea?

Thanks a lot

Matir 10-04-2005 10:27 AM

Something like this?


All times are GMT -5. The time now is 02:45 PM.