
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Headers "X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Requested-Method,  Authorization"
Header always set Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

<IfModule mod_rewrite.c>

    RewriteEngine On
    
    # Exclude the 'slate' folder from being rewritten
    RewriteCond %{REQUEST_URI} !^/slate/
    RewriteCond %{REQUEST_URI} !^/svn_deploy.php
    
    # Redirect all other traffic to the 'public' folder
    RewriteRule ^(.*)$ public/$1 [L]

</IfModule>

<FilesMatch "^\.">

    # Exclude the 'slate' folder from being blocked
    <IfModule mod_rewrite.c>
       RewriteCond %{REQUEST_URI} !^/slate/
       RewriteCond %{REQUEST_URI} !^/svn_deploy.php
    </IfModule>
    
    Require all denied
    Satisfy All

</FilesMatch>
