cyantree/grout-project/master/.htaccess - Htaccess File

cyantree/grout-project/master/.htaccess

RewriteEngine On

# Redirect to correct domain
# RewriteCond %{HTTP_HOST} !^localhost$ [NC]
# RewriteCond %{HTTP_HOST} !^www.example.org$ [NC]
# RewriteRule ^(.*)$ http://www.example.org/$1 [R=301,L]

# Redirect directories without trailing / to path with trailing slash, e. g. localhost/app/assets to localhost/app/assets/
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule ^(.*)[^/]$ $1/ [QSA,L]

# Skip existing assets
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule ^assets/(.*)$ - [QSA,L]
RewriteCond %{SCRIPT_FILENAME} -f
RewriteRule ^admin/assets/(.*)$ - [QSA,L]

# Process all other requests with app
RewriteRule .* index.php?%{QUERY_STRING}&Grout_Authorization=%{HTTP:AUTHORIZATION} [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, QUERY_STRING, SCRIPT_FILENAME

Comments

Apache