Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 12639

How to avoid landing page redirects?

$
0
0

Hi,

I've just updated my blog from a Centminmod installation to a EasyEngine one on my VPS. Everything is working, but I'd like to solve little issues to enhance my web performance.

I've made some testing with pages such as Pagespeed Tools and GTmetrix.com and in both cases there's a problem with my landing page: the error shown is

"Avoid landing page redirects"

And the detailed message reads as follows:

 Avoid landing page redirects for the following chain of redirected URLs.

http://javipas.com/
https://javipas.com/
https://www.javipas.com/

I've checked my nginx config files and I've tried several changes, but without success.

First, my Wordpress general settings is showing my homepage as

www.javipas.com

and not

javipas.com

But even if I change that, the error stays there.

My /etc/nginx/conf.d/force-ssl-javipas.com-conf contains the following:

server {
        listen 80;
#       listen [::]:80;
        server_name www.javipas.com javipas.com;
#       return 301 https://$host$request_uri;
        return 301 https://javipas.com$request_uri;
}

And my /etc/nginx/sites-available/javipas.com is this:

server {


    server_name javipas.com www.javipas.com;
#   return 301 https://www.javipas.com$request_uri;

    access_log /var/log/nginx/javipas.com.access.log rt_cache_redis;
    error_log /var/log/nginx/javipas.com.error.log;

    root /var/www/javipas.com/htdocs;
    index index.php index.html index.htm;

    include  common/redis-php7.conf;
    include common/wpcommon-php7.conf;
    include common/locations-php7.conf;
    include /var/www/javipas.com/conf/nginx/*.conf;
}

As you can see, I've tried to include a permanent redirection but as far as I know this doesn't work either.

The waterfall analysis on this tests show that this redirections are adding almost 1s in my load time (2.4s total currently). It's a real pity, and I'd like to know how to avoid those redirects. Detail on the waterfall attached in case it can give more information. Thank you!


Viewing all articles
Browse latest Browse all 12639

Trending Articles