Hello, I use SSL to connect to the admin panel, it works well. ---> Https://domain.tld:50443 or https://IP:50443 But if I log into http (without the s), I get a bad request (of course ) How can I force the connection via SSL, but only for the panel and not the whole website I can do to phpmyadmin and roundcube, but not for the panel Thanks
Should be possible to do this with mod_rewrite: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
Yes, I know this I tried this (in ispconfig.vhost) Code: <IfModule mod_rewrite.c> <IfModule mod_ssl.c> <Location /> RewriteEngine on RewriteCond %{HTTPS} !^on$ [NC] RewriteCond %{SERVER_PORT} ^50443$ RewriteRule . https://%{HTTP_HOST}:50443%{REQUEST_URI} [L] </Location> </IfModule> </IfModule> but it doesn't work An idea ?
Can you try these links? http://www.whoopis.com/howtos/apache-rewrite.html http://www.cyberciti.biz/tips/howto-apache-force-https-secure-connections.html http://www.besthostratings.com/articles/force-ssl-htaccess.html