k0l1br1/phalcon-modular-rest-skeleton/master/public/.htaccess - Htaccess File

k0l1br1/phalcon-modular-rest-skeleton/master/public/.htaccess

# Customize this file for your server and save as .htaccess

RewriteEngine On

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</IfModule>

# Disallow php.ini file from being viewed
<Files ~ "php.ini">
  order allow,deny
  deny from all
</Files>

# Do not allow directory listings
IndexIgnore *

#IMPORTANT TO GET JWT FROM HEADERS
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

On Github License

Files

Download PDF of Htaccess file
GET, REQUEST_FILENAME

Comments

Apache