Fastest . => www. Redirect?

Hi folks,

how is it possible to get instant redirects like from =>

its crazy fast. can anyone tell me how big sites are able to do that? when i hit enter i instantly ge the => www. redirect…

thanks a lot for your help!

Most websites use a htaccess or http config redirect which will redirect the visitor prior to the server hitting something like the php hypervisor. What thia means in general terms is that the site admins configure their server to send and traffic which matches certain patterns to another address and thwn close the connnection.

I think thats not really the point. Of course you need use htaccess instead of i.e. some wordpress or php 301.

but still, if you use htaccess on a “normal” website, you will never get these extreme fast redirects to www as for example on

I would also be very interested how this is possible. any ideas?

A request to responds with “HTTP/1.1 301”, so nothing particularly special going on there.

They are using Varnish, so it could be that is where they’ve configured the redirect.

43ms is nice alright. Of course it’s not being directed to https so that helps some. I wonder if varnish plays a role in that 43ms time.

As far as your local experience goes, a 301 is a cacheable “permanent” redirect to the browser remembers it and never sends the original request.