Romke-vd-Meulen/integral-php/master/www/.htaccess - Htaccess File

Romke-vd-Meulen/integral-php/master/www/.htaccess

php_value date.timezone "UTC"
php_value short_open_tag "1"
php_value memory_limit 32M

# The rules below basically say that if the file exists in the tree, just
# serve it; otherwise, go to index.php. This is more future-proof for your
# site, because if you start adding more and more content types, you don't
# need to alter the .htaccess to accomodate them.
# This is an important concept for the Front Controller Pattern which the
# ZF MVC makes use of.
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# Because the above only works in theory
RewriteRule ^css/(.*)$ css/$1 [NC,L]
RewriteRule ^js/(.*)$  js/$1 [NC,L]
RewriteRule ^img/(.*)$ img/$1 [NC,L]

RewriteRule ^.*$ index.php [NC,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache