menthol/Firedmint-Framework/master/.htaccess - Htaccess File

menthol/Firedmint-Framework/master/.htaccess

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Firedmint handle any 404 errors.
ErrorDocument 404 /index.php

# Make a error output on any 500 errors.
ErrorDocument 500 "<html><head><title>500 Application Error</title></head><body><h1>Application Error</h1><p>The Firedmint application could not be launched.</p></body></html>"

# Set the default handler.
DirectoryIndex index.php

<IfModule mod_php5.c>
  php_value magic_quotes_gpc        0
  php_value magic_quotes_runtime    0
  php_value magic_quotes_sybase     0
  php_value register_globals        0
  php_value session.auto_start      0
  php_value default_charset         "utf-8"
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine                      on
  
  # Set flag so we know URL rewriting is available
  SetEnv FM_REWRITEURLS              1

  #RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^(core/public/|static/public/|var/public/|site/[a-zA-Z0-9._-]*/public/|site/[a-zA-Z0-9._-]*/extension/[a-zA-Z0-9_-]*/public/|site/[a-zA-Z0-9._-]*/template/[a-zA-Z0-9_-]*/public/) - [L]
   
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^(core/|site/|static/|var/) index.php/$1 [L,QSA]
  
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [QSA]
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, static

Comments

Apache