skylei/skeleton-1/master/htdocs/web/.htaccess - Htaccess File

skylei/skeleton-1/master/htdocs/web/.htaccess

#clear php.ini auto_append_file set.
# auto_prepend_file set.
php_value auto_append_file none
php_value auto_prepend_file none
php_value include_path "."

<IfModule mod_rewrite.c>
RewriteEngine On
#{{{rewrite start
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php?$1 [NC,L]
</IfModule>

<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|gz)$">
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_FILENAME, REQUEST_URI

Comments

Apache