Help needed regarding Latency and 301 redirect

Rhapsody

Newbie
Joined
Sep 26, 2013
Messages
1
Reaction score
0
Dear Friends,

I want my website to work either way for both www and root domain so I setup A record for root domain then create a CNAME record which points www at my root domain

Now I have following problems,

1. If I type www its actually resulting in 301 redirect to root domain, Google and Bing webmaster tool is showing increasing number of 301 error as I have a wordpress blog hosted on the domain.

2. Every time the redirection is causing about 3 sec latency.

I tried to add a screenshot but I am not allowed here. It seems I am also not allowed to post domain names. Please consider.

Please advise if I have made any mistake in configuring domain, as I am relatively new in this field.

Thank you in advance.
 
Yes, when visiting a page with www in the domain, it will be a 301 redirect.. there's no way around it.

About the lag, i am not sure from where it comes from as there shouldn't be any.. add this htaccess to your domain root folder:

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