sandergroen/DinerKalender/master/web/.htaccess - Htaccess File

sandergroen/DinerKalender/master/web/.htaccess

DirectoryIndex index.html
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
    RewriteRule ^(.*) - [E=BASE:%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]
    # Rewrite to API
    RewriteRule ^api/(.*) /app_dev.php/api/$1 [L]
    # Rewrite all other queries to the front controller.
    RewriteRule .? %{ENV:BASE}/index.html [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_FILENAME, REQUEST_URI

Comments

Apache