Why is a www to no-www redirect so slow?

Why is a www to no-www redirect so slow? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Why is a www to no-www redirect so slow? error on your web browser. Problem :


I'm quite new to running a website, and I've recently run my page through some page load time measurements to try and reduce load time. After scaling down my images etc, I find that the bottleneck comes from 'wait' time, notably time spent waiting for a redirect from my www domain to the domain without www.



Is there a way to prevent the additional load time caused by the redirect, while still having my page be accessible with or without the www in the URL?



I am running on a Wordpress installation on DreamHost.



http://tools.pingdom.com/fpt/#!/cmbT5V/http://www.kiwifoodie.co.nz



This question is about why the wait times are slow when loading page, but it does not address redirects.


Solution :

If you wish to speed up the redirect, instead of using DreamHost for your DNS services and adding a site redirect in DreamHost, you might manage your DNS through your domain name registrar (Aust Domains), whose services if you're lucky may use anycast DNS and perform much faster. You would then setup the HTTP redirect in their control panel.



enter image description here



Pricing for shared web hosting is always dependent on requirements - for example, the amount of diskspace required, bandwidth required. Since in reality, you get what you pay for, if you are looking for unlimited diskspace and unlimited bandwidth but also a premium level of performance this will not come cheap however if you work out what you actually need in terms of diskspace and bandwidth and then shop around you might find a premium performance hosting solution that fits your requirements without the high price.



Alternatively Pay-As-You-Go cloud hosting solutions such as Amazon S3, Microsoft Azure, Google Cloud etc., can offer high performance for low budget if your diskspace and bandwidth requirements are not excessive.



You could also use a CDN/acceleration service such as CloudFlare to improve your DNS, redirects and site performance.




Interesting note, thanks. I was using DreamHost's redirect option. I should be looking at handling it via code in .htaccess instead, then?




This is the difference: my site does this redirect quickly on Dreamhost and yours does not. Dreamhost has a setting for this that makes it work quickly. It can be set outside of wordpress using the Dreamhost panel:





To get this:




  1. Log into https://panel.dreamhost.com/

  2. Click on "Manage domains"

  3. Click the "Edit" button next to your fully hosted domain


We hope that this article has helped you resolve the redirects, optimization, load-time error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=