title: http 301 redirect performance
body: <p>I have a site "www.example.net"</p>
  
  <p>But I noticed that when I entered "example.net" (into a browser), I would first receive a 301, which would correctly redirect to site.</p>
  
  <p>My issue is that it takes <strong>6 - 17</strong> seconds before it gets redirected.</p>
  
  <p>What I would like to know is what is the cause of such an extensive operation and how to fix it?</p>
  
  <p>Extra Info
  Site is a Wordpress site on an apache server.</p>
  
  <p><strong>EDIT</strong>
  <strong>HTACCESS</strong></p>
  
  <pre><code># BEGIN W3TC Browser Cache
  &lt;IfModule mod_deflate.c&gt;
      &lt;IfModule mod_headers.c&gt;
          Header append Vary User-Agent env=!dont-vary
      &lt;/IfModule&gt;
          AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
      &lt;IfModule mod_mime.c&gt;
          # DEFLATE by extension
          AddOutputFilter DEFLATE js css htm html xml
      &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  &lt;FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$"&gt;
      FileETag MTime Size
      &lt;IfModule mod_headers.c&gt;
          Header set Pragma "public"
          Header set Cache-Control "max-age=31536000, public"
           Header set X-Powered-By "W3 Total Cache/0.9.4"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  &lt;FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$"&gt;
      FileETag MTime Size
      &lt;IfModule mod_headers.c&gt;
          Header set Pragma "public"
          Header set Cache-Control "max-age=3600, public"
           Header set X-Powered-By "W3 Total Cache/0.9.4"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  &lt;FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|WOFF|XLA|XLS|XLSX|XLT|XLW|ZIP)$"&gt;
      FileETag MTime Size
      &lt;IfModule mod_headers.c&gt;
          Header set Pragma "public"
          Header set Cache-Control "max-age=31536000, public"
           Header set X-Powered-By "W3 Total Cache/0.9.4"
      &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  # END W3TC Browser Cache
  # BEGIN W3TC CDN
  &lt;FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$"&gt;
  &lt;IfModule mod_headers.c&gt;
      Header set Access-Control-Allow-Origin "*"
  &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  # END W3TC CDN
  # BEGIN W3TC Page Cache core
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
      RewriteCond %{HTTP:Accept-Encoding} gzip
      RewriteRule .* - [E=W3TC_ENC:_gzip]
      RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
      RewriteRule .* - [E=W3TC_PREVIEW:_preview]
      RewriteCond %{REQUEST_METHOD} !=POST
      RewriteCond %{QUERY_STRING} =""
      RewriteCond %{REQUEST_URI} \/$
      RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
      RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
      RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
  &lt;/IfModule&gt;
  # END W3TC Page Cache core
  # BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>