Ive put an htaccess file on a site with the following

```
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.ic-furniture\.com)(:80)? [NC]
RewriteRule ^(.*) http://ic-furniture.com/$1 [R=301,L]
order deny,allow

redirect 301    /index.php  http://ic-furniture.com/
redirect 301    /index.html http://ic-furniture.com/

ErrorDocument 404 http://ic-furniture.com/404.html

```

What im trying to do is

* remove the www.
* remove /index.html
* if some one clicks a link to site/index.php i want them to go to the home page
* 404 error page to 404.html

but when i upload this im getting an error

> 
> **The page isn't redirecting properly**
> 
> 
> Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
> 
> 
> 

any idea what im doing wrong here, ive been going crazy trying to figure it out