I'm trying to redirect like this using .htaccess:

```
* -> index.html
/affiliate -> affiliate.html
/ref/* -> ref.html

```

But the problem is, that all links are redirected to index, how I can exclude several links from this rule?

I have this code for now:

```
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>

```