• Hi,

    I have a strange problem. The https://www.xx.xx version of my site scores high on pagespeed. It still feels slow, but that’s a different problem I guess.

    The non-www version scores horrible on pagespeed due to a very high Server Response Time. It can even take as long as 12 seconds!!

    Why is there such a big difference between the two? And what could I do about it?

    WordPress automatically does this non www to www redirect, right? I’m sure its better for SEO but this is unacceptable.

    Anyone has any idea?

    My site:
    https://www.cinematicwedding.nl

    Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Either I am not understanding this right or you have fixed the problem. I do not have any problems with or without the www.

    Thread Starter Stabdogg

    (@stabdogg)

    Hi Matthew,

    Thanks.
    The problem is not that the page doesn’t load on the non www version, but that it loads very slowly.

    When I check the Pagespeed with the Google Pagespeed Insights, it shows that the non www version has a very long server response time.
    However, the www version does not do that and scores great on Pagespeed.

    So why does the non www version takes longer to load?

    The problem is not that the page doesn’t load on the non www version, but that it loads very slowly.

    Personally there is only a slight (1 to 2 second) difference on my end. The website still loads with in 7 seconds.

    I would contact your host about this one. This looks like something that they way be better at helping you with.

    For SEO reasons anyway, you should have things set so only one or the other ever actually makes it all the way in…

    You would incorporate/include your non-www to www or www to non-www Rewrite htaccess code in the beginning of the WordPress Rewrite loop as shown below.

    # Rewrite non-www to www
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
    RewriteRule ^index\.php$ - [L]
    # Rewrite www to non-www
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
    RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
    RewriteRule ^index\.php$ - [L]

    https://forum.ait-pro.com/forums/topic/htaccess-redirect-www-to-non-www-htaccess-redirect-non-www-to-www/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Non-www version is horrible slow. Www version is fine’ is closed to new replies.