I'm trying to redirect all requests from host/cocoon to https://host/cocoon
I have tried this:
RewriteEngine On
RewriteCond %{SERVER_NAME} 80
RwriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=permanent]
This seems to work, if you type in the hostname in the URL line. but if you enter hostname/cocoon, the result would be http://host/cocoon
Does anyone has an idea?