Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
redirect from http to https
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pioneer-hg
n00b
n00b


Joined: 29 Apr 2004
Posts: 27
Location: Kyiv, Ukraine

PostPosted: Thu Dec 22, 2005 1:29 pm    Post subject: redirect from http to https Reply with quote

I want that my certain cite can be accessed only via https. And I want that if someone type http://www.site.com then he will be redirected to https://www.site.com. Can I do that via .htaccess and how?
Thank you for any help.
_________________
[pioneer]
Back to top
View user's profile Send private message
Gregs
n00b
n00b


Joined: 26 Oct 2005
Posts: 14

PostPosted: Thu Dec 22, 2005 1:44 pm    Post subject: Reply with quote

Assumed that www.site.com is an own vhost you can just put
Code:
redirect / https://www.site.com
into you .htaccess files (you could write this also into the vhosts.conf). Be sure that .htaccess override is allowed in the apache config.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum