Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- RewriteCond %{HTTP_HOST} !^$
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
- RewriteCond %{HTTPS} !=on
- RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php/$1 [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement