# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_URI} !\.(png|jpe?g|gif|css|js)$ [NC]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico

  RewriteCond $1 !^(index\.php|Pages/(.*)|css/(.*)|main/(.*))
  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
