Disable NON-SSL access for a subdomain

TheSpidre

New member
Joined
Jul 19, 2005
Messages
4
Hello,

I have a subdomain secure.domain.com and want it to be accessible through SSL only.

All the files for secure.domain.com are in the private_html, however I want to completely disable the option to login without SSL and redirect all non-ssl to the ssl-folder..

Using a php redirect script isn't possible, because I would need to put it in every subdir :(

Any help is greatly appreciated!
 
If the files/directories aren't in the public_html directory aswell, I think that should do it. Make sure public_html isn't a link to private_html or vice-versa.
 
I think you can use a .htaccess redirect for this although I haven't looked inot if it can handle * directories so you don't have to put it in each directory.
 
jmstacey said:
I think you can use a .htaccess redirect for this although I haven't looked inot if it can handle * directories so you don't have to put it in each directory.

I've already searched for a htaccess script that does something like that, no luck though :(
 
Back
Top