How to force ssl?
Hello,
I have tried the .htaccess method of forcing ssl. But it never works on my server. I have modrewrite loaded. Any other solution? I need to force the full site to ssl. |
You can require SSL with the (appropriately named) directive:
Code:
SSLRequireSSL BTW, I'm assuming you're talking Apache web server? Version 2.2? (That's good info to include in your question.) |
Quote:
yea. It is apache 2.2. Sorry for not giving enough details. But if we use SSLRequireSSL , it will give error page if some one access the http. But, I just need to force ssl. |
Setup a redirect to https://your.site.tld with mod_rewrite. There are a bunch of examples on the net for this.
|
Quote:
|
Hi,
Use mod_rewrite: Code:
RewriteEngine on Code:
AllowOverride All Regards |
Quote:
|
All times are GMT -5. The time now is 04:25 AM. |