I've got a page, I'm currently trying to write a proper .htaccess file for.
At the moment I have this code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
So that works all fine, but I want it to spit out the url with 'www' in front.
I've already tried that:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
But it obviously doesn't work like that.
I'd be very happy, if you could help me out, thanks a lot.