• Resolved rakesh77

    (@rakesh77)


    Hi,

    After I change the permalink style from Plain to any of the other options, I encounters errors – mainly with forms.
    Login/Logout/Contact forms etc. do not appear to do anything.

    In the Nginx error log, the following errors appear:

    2019/07/17 15:09:24 [error] 26688#0: *1 "/data001/***/***/***/***/***.com/index.php/my-account/customer-logout/index.php" is not found (20: Not a directory), <truncated>

    Nginx and php-fpm are running as nginx and the directory is owned by nginx (755/644) permissions.

    The appending of index.php to the URL seems odd.
    But I’m not sure why this is happening.
    I’ve always used Apache, but opted for Nginx to get better performance.
    So I think the issue may be due to my limited knowledge here.

    Nginx Config:

        location / {
            #try_files $uri $uri/ /index.php;
            try_files $uri $uri/ /index.php?$args;
            #try_files $uri $uri/;
            include /***/***/***/***/***/***.com/nginx.conf;
        }
    location ~ .php$ {
            #try_files $uri =404;
            try_files $uri $uri/ /index.php?$args;
            #try_files $uri $uri/;
            include /***/***/***/***/***/***.com/nginx.conf;
            #fastcgi_pass 127.0.0.1:9000;
            fastcgi_pass unix:/var/run/php7.0-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
    

    Centos 7
    Wordpress Version 5.2.2
    Nginx: 1.12.2
    PHP 7.3.7
    MariaDB 15.1
    Notable Plugins: W3 Total Cache, Woocommerce, WP-Optimize

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rakesh77

    (@rakesh77)

    The problem may have been caused by the W3 Total Cache changes.
    I commented out the following line and it seems to now work correctly.

    rewrite ^/wp-content/cache/minify/ /index.php last;

    Is this solution recommended?

    Thanks

    Thread Starter rakesh77

    (@rakesh77)

    I was wrong…

    The permalink setting is back to ‘Plain’.
    If I try to change it to ‘Post name’ and save, it reverts back to ‘Plain’.
    The value in wp_options in the database show /%postname%/

    My URLs display as https://***.***.com/?page_id=21

    So I am at a loss…
    I am trying to change the permalink as recommended by Yoast SEO.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issues after changing permalinks’ is closed to new replies.