|
#1
|
||||
|
||||
|
Hi everyone.
I was wondering if it is possible to make my site https upon first logging on to the site. For example: A user inputs http://www.mydomain.com and automatically goes to https://www.mydomain.com Is this possible with shared ssl or do I have to buy a private one? Regards, Holmis |
|
#2
|
||||
|
||||
|
Quote:
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#3
|
||||
|
||||
|
You can do it using an htaccess mod_rewrite command. I do this exact thing with my webmail installation, to make sure everybody accesses it securely.
Let me know if you want the lines I use.
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#4
|
||||
|
||||
|
Quote:
Thanx |
|
#5
|
||||
|
||||
|
Quote:
And the answer is: No. You need private ssl for that. But to redirect from the non-secure address to secure you can use .htaccess.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss Last edited by quietFinn; 11-23-2006 at 06:47 PM. |
|
#6
|
||||
|
||||
|
Let me explain my setup before I paste this. My domain's in my signature if you want to look, but i'll use an example domain in this post. I keep my webmail at domain.com/email. I have my ssl installed on www.domain.com, so putting a secure connection on email.domain.com would give a popup. So i have email.domain.com (which my clients know) redirect to http://www.domain.com/email. I also have another redirect which says if somebody goes to http://www.domain.com/email, they get sent to https:// that. Here it is:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^email.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.email.domain.com$
RewriteRule ^(.*)$ https://www.domain.com/email [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
__________________
Follow me on Twitter! http://twitter.com/mrw |
|
#7
|
|||
|
|||
|
You must have private ssl.
In this you would have to redirect using the shared ssl path to your server without private ssl |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 07:01 AM.









