zf3buch/simple-shop/chapter_10_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 RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L]
Files
![HTTP_HOST, REQUEST_FILENAME](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/zf3buch/simple-shop-chapter_10_01-public-htaccess.png)