View previous topic :: View next topic |
Author |
Message |
pioneer-hg n00b
Joined: 29 Apr 2004 Posts: 27 Location: Kyiv, Ukraine
|
Posted: Thu Dec 22, 2005 1:29 pm Post subject: redirect from http to https |
|
|
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 |
|
|
Gregs n00b
Joined: 26 Oct 2005 Posts: 14
|
Posted: Thu Dec 22, 2005 1:44 pm Post subject: |
|
|
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 |
|
|
|