Skip to content

#18883: Wordpress - Add automatic fallback for non-pretty permalinks#490

Closed
everettbu wants to merge 2 commits into
masterfrom
n8n/#18883-wordpress-links
Closed

#18883: Wordpress - Add automatic fallback for non-pretty permalinks#490
everettbu wants to merge 2 commits into
masterfrom
n8n/#18883-wordpress-links

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of n8n-io/n8n#20933
Original author: prakharg200


Summary

The WordPress node now automatically handles both pretty and non-pretty permalink configurations. When a request to /wp-json/ returns a 404 error, the node automatically retries using the /?rest_route= format, which works universally across all WordPress permalink settings.

Before: WordPress node only worked with pretty permalinks enabled (requires mod_rewrite/nginx configuration)

After: WordPress node works with any permalink configuration automatically - no user configuration needed

Testing

  1. With pretty permalinks: Configure WordPress credentials with pretty permalinks enabled → Request succeeds using /wp-json/wp/v2/...

  2. With plain permalinks: Configure WordPress credentials with plain permalinks → Initial /wp-json/ request fails with 404 → Automatically retries with /?rest_route=/wp/v2/... → Request succeeds

  3. Edge cases: Trailing slashes normalized correctly, non-404 errors don't retry, proper error messages when both formats fail


Related Linear tickets, Github issues, and Community forum posts

Fixes #18883


Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@everettbu everettbu added node/improvement New feature or request community Authored by a community member in linear Issue or PR has been created in Linear for internal review labels Jan 13, 2026
@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 23, 2026
@everettbu
everettbu deleted the n8n/#18883-wordpress-links branch February 23, 2026 11:03
@everettbu
everettbu restored the n8n/#18883-wordpress-links branch February 23, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Authored by a community member in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant