Forum Moderators: phranque

Message Too Old, No Replies

redirect old non-ssl to ssl folder: overview

please check overview of process for newbie

         

scott1137

2:29 pm on Oct 15, 2010 (gmt 0)

10+ Year Member



This is my first time using ssl. This is for a site that will be used to collect sensitive personal medical data. I'd like to be clear about the process before I wade into details of coding.

Using Linux server I've copied site folders into folder called secure where the ssl certificate is. What I'd like to do is take down the contents of the public folder so no one can access the data from there.

The tech at the web host told me two things about this that I'm not clear about. The techs there have been spot on.

1. That I couldn't use .htaccess with linux servers; that I should write a redirect (I'm guessing he meant html or php and that he is mistaken about .htaccess).

2. That I should put the redirect inside the secure folder. This would move folk coming to the http site to https automatically.

The webhost's knowledge base gives examples of redirects using php and html/javascript in addition to .htaccess.

Q's:

1. Is this overview correct?
2. Is this the best way to accomplish this?
3. Is what I want to do called forcing http to https?
4. Do I want to do this in php, html/javascript or some other way?

Thanks,

Scott

g1smd

10:31 pm on Oct 17, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is trivial to do this in .htaccess and there are hundreds of code examples in the WebmasterWorld Apache forum. This code is for Apache servers.

It appears to me that your host is likely saying they have disabled your servers so that you cannot use .htaccess facilities for your sites.