Problem with mod_rewrite

To consolidate the non-www and www versions of my site, I’ve added the following to htaccess:

RewriteEngine On RewriteCond %{HTTP_HOST} ^[www.estateagentsespana.com](http://www.estateagentsespana.com/) [NC] RewriteRule ^(.*)$ http://estateagentsespana.com/$1 [L,R=301]

This is now causing problems with Matt Wright’s Formmail program that I use.

Formmail is generating this error message:

"The form attempting to use FormMail resides at http://estateagentsespana.com/basicreg.htm, which is not allowed to access this cgi script.
If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

Add ‘estateagentsespana.com’ to your @referers array."

However, the domain name is already in the @referrers array.

Can anybody suggest what the problem might be and the solution?

Thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service