richardhinkamp/giveandgo-website/master/web/.htaccess - Htaccess File

richardhinkamp/giveandgo-website/master/web/.htaccess

# Set the default handler.
DirectoryIndex index.php index.html index.htm

<FilesMatch ".(yml|db)$">
    Order deny,allow
    Deny from all
</FilesMatch>

<IfModule mod_rewrite.c>
  RewriteEngine on
  
  RewriteCond %{HTTP_HOST} !^$
  RewriteCond %{HTTP_HOST} !.dev$
  RewriteCond %{HTTP_HOST} !^www. [NC]
  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

  RewriteRule ^upload/(.+)$ ./upload_old/$1 [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ ./index.php [L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache