Forum Moderators: phranque

Message Too Old, No Replies

non www to www

slows down connection

         

StoutFiles

8:35 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using the following code:

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

However, it seems to increase the initial connection time by about 5 seconds. When you slow count 5 seconds it seems like an eternity. Is this code right? Has anyone ever experienced this before?

For now I'll take possible search engine duplication over a slow website.

g1smd

8:40 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The idea is that normal users should not pass through a redirect when following the normal navigation on the site.

Are your internal links pointing to the wrong place?

jdMorgan

11:31 pm on Mar 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the "Live HTTP Headers" add-on for Firefox/Mozilla browsers, and see what is happening at the HTTP transaction level -- It sounds like multiple redirects are occurring, as g1smd posits above.

Jim