TomasSjosten/caligula_boilerplate/master/webroot/.htaccess - Htaccess File

TomasSjosten/caligula_boilerplate/master/webroot/.htaccess

#ErrorDocument 400 webroot/errormessages/400.php
#ErrorDocument 403 webroot/errormessages/403.php
#ErrorDocument 404 webroot/errormessages/404.php
#ErrorDocument 500 webroot/errormessages/500.php

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# pages with ex. webroot/home
RewriteRule ^([a-z0-9_-]+)$ pages/$1.php [NC,L]

# pages with ex. webroot/example/this-page
RewriteRule ^([a-z0-9_-]+)/([a-z0-9_-]*)$ pages/$1/$2.php [NC,L]

RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]

On Github License

Files

Download PDF of Htaccess file
If-Modified-Since, If-None-Match, REQUEST_FILENAME

Comments

Apache