• I do not know how to setup this plugin with nginx (htacces is not working there). Could you help me please? What should i add to server block?

    When i transfer .htaccess to nginx server block it is not working.

    My page https://remin.nextvision.cz/ (https://remin.nextvision.cz/en/)

    TRANSFER CODE from .htaccess:
    location / {
    rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ redirect;
    if (-e $request_filename){
    rewrite ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /$2 break;
    }
    rewrite ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ /$2 break;
    rewrite ^(.*)$ /index.php break;
    }

Viewing 1 replies (of 1 total)
  • Thread Starter nextvisiondavid

    (@nextvisiondavid)

    I have to start working this page https://remin.nextvision.cz/en/ -> my current server block looks like this:
    server {
    server_name remin.nextvision.cz https://www.remin.nextvision.cz;

    root /var/www/remin.nextvision.cz/public;
    index index.php index.html index.htm;

    # log files
    access_log /var/log/nginx/remin.nextvision.cz.access.log;
    error_log /var/log/nginx/remin.nextvision.cz.error.log;

    location = /favicon.ico {
    log_not_found off;
    access_log off;
    }

    location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
    }

    location / {
    try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
    expires max;
    log_not_found off;
    }

    }

Viewing 1 replies (of 1 total)
  • The topic ‘NGINX’ is closed to new replies.