Graças a Tyson agora eu tenho bem trabalhando. Htaccess arquivo
Aqui está o código que funcionou. Altere domain.com com seu nome de domínio.
Options +FollowSymLinks RewriteEngine On RewriteBase / Options -Indexes # Always use www in the domain RewriteCond %{HTTP_HOST} ^([a-z.]+)?domain\.com$ [NC] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .? http://www.%1domain.com%{REQUEST_URI} [R=301,L] # Check if HTTPS is not used, then jump to HTTPS RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://www.domain.com/$1 [NC,R=301,L] # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]