HaaseIT/HCSF/master/web/.htaccess - Htaccess File

HaaseIT/HCSF/master/web/.htaccess

RewriteEngine On

# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
#RewriteCond %{REQUEST_FILENAME} -s [OR]
#RewriteCond %{REQUEST_FILENAME} -l [OR]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^.*$ - [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]

# Rewrite all other queries to the front controller.
#RewriteRule .? ./app.php [L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}/app.php [L]

# For 1and1 the above won't work, use this instead:
# RewriteRule .? %{ENV:BASE}/app.php [L]

# workaround for php cgi mode
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_FILENAME, REQUEST_URI

Comments

Apache