• WordPress installed in a subdirectory: domain.com/folder

    WordPress Permalink Settings: domain.com/folder/%postname%

    Referencing the WordPress Nginx support article, I added the following to my nginx config:

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

    Permalinks for pages, posts, authors, categories, and tags work great.

    Permalinks for date archives do not work.

    For example, when I hover the mouse over August 2021, it shows the following link:

    domain.com/folder/2021/08

    But instead of going to the appropriate date archive, it instead goes to:

    domain.com/folder

    How can I fix this?

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The initial link is correct, but the request is getting redirected. Be sure your config doesn’t have any other directives that might cause redirection before WP even sees the request. Visit your permalinks settings screen in order to cause WP rewrite rules to be regenerated. If neither of those help any, your theme or a plugin is apparently interfering. Narrow down the cause by selectively deactivating plugins and switching to a twenty* default theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Date Archives not working in Nginx’ is closed to new replies.