midasplatform/Midas

View on GitHub
.htaccess

Summary

Maintainability
Test Coverage
# Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.

Options -Indexes

<IfModule rewrite_module>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} ^(.*/)?(core|(modules|privateModules)/.*)/public/.*$ [OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*/)?library/SwaggerUI/.*$ [OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*/)?favicon.ico$
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]

    RewriteRule ^.*$ index.php [NC,L]
</IfModule>