basically what i want is redirect al request to use HTTPS instead of http
I have this in my htaccess so far and it worked great: Code:
You can get what you need from the HTTP_HOST
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC] RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
This way it will get the host always without the subdomain.