1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help needed regarding Latency and 301 redirect

Discussion in 'Web Hosting' started by Rhapsody, Sep 26, 2013.

  1. Rhapsody

    Rhapsody Newbie

    Sep 26, 2013
    Likes Received:
    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.
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Aug 19, 2011
    Likes Received:
    Home Page:
    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]
    • Thanks Thanks x 1