x-team/x-map/develop/web/.htaccess - Htaccess File

x-team/x-map/develop/web/.htaccess

DirectoryIndex index.html

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

    # If the requested filename exists, simply serve it.
    # We only want to let Apache serve files and not directories.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]

    # Let Symfony handle API requests
    RewriteCond %{REQUEST_URI} ^/api/
    RewriteRule ^(.*)$ app.php [QSA,L]

    # Let index.html handle all non-API requests
    RewriteRule ^(.*)$ index.html
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache