zf3buch/pin-your-pizza/chapter_02_01/public/.htaccess - Htaccess File

zf3buch/pin-your-pizza/chapter_02_01/public/.htaccess

# Remove slash from end
RewriteEngine  on
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

# Redirect requests to index.php if not a file or dir
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# Ignore static content and don't redirect it to the app.
RewriteCond %{REQUEST_URI} ^(css|js|img|assets)/ [OR]
RewriteCond %{REQUEST_FILENAME} .(js|map|css|ico|gif|jpg|png|eot|svg|ttf|woff)$
RewriteRule ^.*$ - [NC,L]

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

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI, static

Comments

Apache