Avoid landing page redirects


#1

Hi ! I would like to ask your help.

I tried to troubleshoot this issue for about a week and still not fixed. I got this Avoid landing page redirects in my site.

I already defined my site url :

define(‘WP_HOME’,‘https://www.mimicdigitalmarketing.com’); define(‘WP_SITEURL’,‘https://www.mimicdigitalmarketing.com’);

and this is my code

server {

server_name www. mimicdigitalmarketing.com;

client_max_body_size 20m;

index index.php index.html index.htm;

root   /home/nate/public_html;

location / {

    try_files $uri $uri/ /index.php?q=$uri&$args;

}

Thanks !


#2

Hello,

do you want to use www.yourdomain.tld or yourdomain.ltd as main address ?

If you want to use yourdomain.tld, your vhost should look like :

server {
        listen 80;
        listen [::]:80;
        server_name yourdomain.ltd www.yourdomain.ltd;
        return 301 https://yourdomain.tld$request_uri;
}
server {

    server_name  www.yourdomain.ltd;

    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    ssl_certificate /etc/letsencrypt/live/yourdomain.ltd/fullchain.pem;
    ssl_certificate_key    /etc/letsencrypt/live/yourdomain.ltd/key.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/yourdomain.ltd/cert.pem;

    return 301 https://yourdomain.ltd$request_uri;
}
server {

    server_name yourdomain.ltd;
	
	listen 443 ssl http2;
    listen [::]:443 ssl http2;
    ssl_certificate /etc/letsencrypt/live/yourdomain.ltd/fullchain.pem;
    ssl_certificate_key    /etc/letsencrypt/live/yourdomain.ltd/key.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/yourdomain.ltd/cert.pem;

	## your vhost config here
	
}

#3