<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

	# WWW redirect
	RewriteCond %{HTTP_HOST} ^www.movie-group\.ru$ [NC]
	RewriteRule ^(.*)$ http://movie-group.ru/$1 [R=301,L]
    
    #RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
    #RewriteCond %{HTTP_HOST} ^www\. [NC]
    #RewriteRule ^ https://europalift.ru%{REQUEST_URI} [L,NE,R=301]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
