ReDirect problems - all help appreciated

I am using http://www.ragepank.com/redirect-check/

To check my Redirect fro my site: http://www.trade-th.com/

I am told:

2 pages returned a 200 response. This indicates potential for duplicate content problems.
Ideally, only http://www.trade-th.com OR http://trade-th.com should return a 200 response.

http://www.trade-th.com returns a 200 (OK) response. PR N/A
http://trade-th.com returns a 200 (OK) response. PR N/A

The code i am using is:

RewriteEngine On
RewriteBase /
RewriteCond % ^www.trade-th.com.com [NC]
RewriteRule ^(.*)$ http://trade-th.com/$1 [L,R=301]

All help appreciated :slight_smile:

The condition variable is supposed to be %{HTTP_HOST}, and you typed .com twice. And since this is a regular expression, where a period has special meaning, you should escape literal periods as \.

Hello Jeff,

Thank you for your reply, and detailed info,

Yes I got it correct now :slight_smile:

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

many Thank yous :slight_smile: