Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-04-2005, 09:43 AM   #1
LQ Newbie
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
Debian redirect apache to apche-ssl


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

Last edited by klyshi; 10-04-2005 at 09:45 AM.
Old 10-04-2005, 10:27 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Something like this?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Configuring Automatic SSL Redirect for Apache 2.0.50 kaplan71 Linux - Software 1 08-23-2005 05:26 AM
debian sarge apache-ssl configuration notolerance Debian 0 01-10-2005 10:44 AM
redirect in Apache baslemmens Linux - Networking 6 09-02-2004 12:07 PM
need apache manual, apche already installed.. wordthief Linux - Newbie 1 08-31-2003 11:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration