NatLibFi/Skosmos

View on GitHub
.htaccess

Summary

Maintainability
Test Coverage
Options +FollowSymlinks -MultiViews -Indexes

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^entity$ src/entity.php [L]

RewriteRule ^rest/v1/swagger.json$ swagger.json [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^rest/v1/(.*)$ src/rest.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $0 !^resource/
RewriteRule ^(.*)$ src/index.php/$1 [L] 

RewriteCond $0 ^favicon.ico$
RewriteCond custom-favicon.ico -F
RewriteRule ^favicon.ico$ custom-favicon.ico [L] 

<Files ~ "\.ttl$">
    <IfModule mod_authz_core.c> 
        # Apache 2.4 
        Require all denied
    </IfModule> 
    <IfModule !mod_authz_core.c> 
        Order allow,deny 
        Deny from all 
    </IfModule> 
</Files>