.htaccess.. little help please |
[eluser]citryer[/eluser]
Dear All, what rules should I put-in, into my .htaccess file to redirect any one visiting http://mywebsite.com/index.php/admin/login to its SSL equivalent i.e https://mywebsite.com/index.php/admin/login Thanks and looking forward to your replies.
[eluser]garaget[/eluser]
I would try this at the top of your admin/login view file Code: if ($_SERVER['HTTPS']!= 'on') { If this is not best way to do it, then please take other suggestions. Use at your own risk ![]()
[eluser]citryer[/eluser]
I would prefer if this can be handled at .htaccess end. ![]() but thanks anyways..
[eluser]garaget[/eluser]
Code: RewriteEngine On my htaccess skills is even worse.. same warning
[eluser]citryer[/eluser]
didn't work... no redirection took place. Just one URL to be taken care of while all the other areas of the website will be NON-SSL based. ![]() |
Welcome Guest, Not a member yet? Register Sign In |