You’re missing your WordPress rewrite rules.
It’s probably confusing because, in Apache, WordPresss automatically generates the rewrite rules in .htaccess. It does not do the same in nginx environments.
Pay special attention to the WordPress documentation on nginx and configuration directives referencing HTTP rewrite rules, the “includes” directives for segmenting configuration and the specific WordPress rewrite rules that need to be present for pretty permalinks to work properly.
Without knowing a lot about your operating system, site/network or setup, I hesitate to copy and paste code without context. This section of the documentation is pretty thorough, and should provide what you’re looking for.
Related Posts:
- How do I add a server-independent external rewrite rule?
- Use subdomain for certain urls
- Rewrite URL to remap WordPress Permalink
- Nginx rewrite rule conflict with WordPress permalinks rule
- Cache issues with redis and nginx
- Nginx rewrite rules
- How to redirect http://mydomain/blog/blahblah/ to http://mydomain/blahblah/ in wordpress htaccess?
- Cannot access wp-admin without trailing slash – .htaccess configuration for WordPress behind a nginx proxy
- Change pagination url format
- How to redirect specific URL to Subdomain
- How to redirect a link to a new link?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Rewriting / Redirecting request outside wordpress
- Can’t get pretty permalinks to work without index.php
- WP-Include rewrite directory
- htaccess – Redirect to subfolder without changing browser URL
- How to create a front end user profile with a friendly permalink
- Masking wp-content/themes/name/images to just images directory using htaccess
- Optimize apache for WP use
- Using custom/dynamic “slug” for a page
- How to make pages slug have priority over any other taxonomies like custom-post, post or category
- Rewrite URL – how to do a SEO-friendly Unicode custom URL?
- Clash of the rewrites
- Query Vars for the Homepage?
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- Will references to ugly links automatically redirect to their pretty url permalink?
- Mod_rewrite delete parameter in 301 Redirect
- add_rewrite_rule not working for page var
- Author url rewrite
- Adding the amp url prefix to the beginning
- Tricky URL rewrite with custom values in url
- Search url wp-rewrite after redirect?
- Use the plus sign “+” instead of dash “-” in URLs
- redirect 301 old url to new url
- Add rewrite rule to call front-page.php?
- Having trouble with using add_rewrite_rule and pagination
- Issue with using .htaccess to redirect feedburner feed
- How to create an endpoint without creating sub endpoints?
- Is there a ‘rake routes’ for wordpress?
- Rewriting URLs in WordPress
- add_rewrite_rule() to route to file other than index.php
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- WordPress Page Id
- How to rewrite taxonomy and tags URL
- Changing WordPress Address URL disaster
- Prevent WordPress from Rewriting URL for one template
- Disable Pagination on Pages
- Rewriting a page with a custom parameter
- Need help with simple rewrite rule (shouldn’t this be easy?)
- How to add a custom redirect rule for Post as subdomains?
- How to preserve the query string while using add_rewrite_rule and default public query vars
- How do I display only the parent page in the url
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Get url param no longer works when using add_rewrite_rule
- How to use add_rewrite_rule in subdomain
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- Rewrite the default post object’s permalink
- adding custom controller called by front-end
- rewrite attachment url with attachment title
- Unable to get /%postname%/ permalinks working, 404 on all links
- WordPress search rewriting
- Enpoint Not Found in Rewrite Tag Permalink
- Custom Rewrite Rules
- show ALL latest posts with archive.php on example.com/latest
- Adding a query string to only one page url
- Url rewrite with htaccess
- force www rewrite if wordpress put in a folder
- Current post ID – relative url
- How to use wp rewrite to hide form action url?
- WordPress Rewrite rule is not working
- change the url in wordpress
- Redirect URL to an existing page with query string or #! added on
- If I use Apache & ngnix together will I have fewer problems?
- remove archive from url :: marketpress
- add_rewrite_rule with optional parameters
- How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Redirect empty search to another page
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- WordPress URL redirect and replace ? question mark
- WordPress index in subdirectory, blogposts in root directory
- Fresh install redirects to www, breaking page loads
- url restructure or rewrite having $_GET variables
- How to use a RewriteRule to change endpoint url
- Custom taxonomy Rewrite Rule
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- .htaccess RewriteRule to include post type and taxonomy
- What’s the best approach to do this?
- Font Page overrides rewrites
- WordPress Rewrite: Ignore Specific Pattern
- rewrite rule for home/index page
- Stop wordpress to redirecting home page if no page found
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- How to change search url produced by ‘s GET method?
- Hide / rewrite download link
- Lost WordPress website access after changing URL [closed]
- Rewrite rule to simulate page hierarchy results in 404