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

    RewriteEngine On

    # 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]

    # 301 redirection
    #RedirectPermanent /signature.html/ /expertise/#signature
    #RedirectPermanent /integrateur.html/ /integrateur/
    #RedirectPermanent /securite.html/ /expertise/#secur_infor
    #RedirectPermanent /hebergement.html/ /webagence/
    #RedirectPermanent /formations.html/ /expertise/#formation
    #RedirectPermanent /contacts.html/ /contact/
    #RedirectPermanent /8-nos-services/5-autres-solutions.html/ /expertise/

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