Timeline for Custom structure permalink preventing 404
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2021 at 16:47 | comment | added | SagarG |
@sam I didn't suggest to keep permalinks settings as "plain". It was just to check or debug the issue. In the end, in my comment itself I have written that you would also need to revert your custom permalinks settings. And, yes on Nginx .htacess files don't work. Did you get a chance to check settings on your server itself? You can also try below code to tell WordPres whether a URL is 404 or not if you like. But, it is not a proper way I think. $wp_query->is_404 = false; See this post
|
|
Feb 10, 2021 at 10:36 | comment | added | Someone | Changing the URL structure to "Plain" doesn't resolve this issue, Changing it to "Post Name" does work, this doesn't solve the issue because I need it to have the custom permalink structure. This is happens on 2 websites now not just one I first reported this issue for, Both still 404 when visit an invalid URL after the custom forward bit of the permalink. This doesn't happen locally on either site, I think its hosting related and .htaccess is not used because these are hosted under Nginix both locally where its fine and online. Switching theme to a default doesn't help. | |
Jul 27, 2020 at 11:28 | review | Late answers | |||
Jul 27, 2020 at 18:38 | |||||
Jul 27, 2020 at 11:02 | history | answered | SagarG | CC BY-SA 4.0 |