RewriteEngine On RewriteBase / RewriteCond %{HTTPS} !on RewriteRule (.*) https://daydream-solutions.com%{REQUEST_URI} [L,R=301] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]