2014-02-10 06:36:00 +01:00
|
|
|
RewriteEngine on
|
|
|
|
|
2014-09-19 00:47:39 +02:00
|
|
|
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.)
|
|
|
|
RedirectMatch 403 /\..*$
|
|
|
|
|
2014-09-04 20:50:02 +02:00
|
|
|
# RewriteBase is required in some hosting environments (Amazon EC2, ...)
|
|
|
|
#RewriteBase /
|
|
|
|
|
2014-02-10 06:36:00 +01:00
|
|
|
# if a directory or a file exists, use it directly
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
|
2015-04-13 12:10:07 +02:00
|
|
|
# prevent application 404 errors
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !robots\.txt
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !favicon\.ico
|
|
|
|
|
2014-02-10 06:36:00 +01:00
|
|
|
# otherwise forward it to index.php
|
|
|
|
RewriteRule . index.php
|
|
|
|
|