Navigate
Home
ArticleWiki
Forum
Journal
Search
Newsletter
Links
Tech News
expertsrt.com
Welcome Guest.
Username:

Password:

Remember me

Need help redirecting to secure(SSL) folder
Welcome, Guest. Please login or register.
January 08, 2009, 10:58:26 PM
11313 Posts in 1251 Topics by 508 Members
Latest Member: pissematbox
Experts Round Table Network  |  Serverside Technology  |  PHP  |  Need help redirecting to secure(SSL) folder « previous next »
Pages: [1]
Author Topic: Need help redirecting to secure(SSL) folder  (Read 134 times)
thepreacher

Offline Offline

Posts: 79


« on: December 03, 2008, 09:10:25 AM »

We have started to collect and store some sensitive data on our website and as such we have dicieded to switch the site to an SSL protected folder. Now since most people will not type https://www.foo.com, what i did was to move all the files to the secure folder (httpsdocs) and leave leave a file index.php in the non secure folder (httpdocs) which redirects to https://www.foo.com using the php header function.

What happens is that, the redirection times out after several attempts by the browser.

How do i host an SSL enabled site such that people can type www.foo.com and get the padlock showing in the status bar?

BTW the hosting is on a VPS and the OS is linux
Logged
GrandSchtroumpf
Mentor

Offline Offline

Posts: 411



« Reply #1 on: December 03, 2008, 05:31:35 PM »

The method you are describing seems correct.
The timeout is strange.  Maybe there are some errors in your code.
You can also use .htaccess to do the redirection.
Logged
VGR
Mentor

Offline Offline

Posts: 684



WWW
« Reply #2 on: December 06, 2008, 04:06:27 AM »

have you checked that directly accessing https://www.foo.bar does work OK ?
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
Pages: [1]
« previous next »
    Jump to: