Use this plugin in wordpress and write rule which will overwrite nginx rule.
https://wordpress.org/plugins/rewrite/
When you have wordpress, you have to set permalink to default to work your webserver rule work and if you dont want to do that you have to install above plugin and write rule.
Related Posts:
- How to remove the index.php in the url?
- WP permalink working, but why content doesn’t display
- Need help with add_rewrite_rule
- Changing permalinks gives me 404 errors on nginx
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Permalink format: singular or plural
- How to get pretty URLs with add_query_arg in permalinks
- Custom post type permalink endpoint
- Using $_GET variables in the URL?
- URL rewrite based on a custom field value
- How to change author base without front
- How to create a permalink structure for posts in a specific category
- How to map permalinks with accented letters to sanitized slugs?
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- nginx – permalinks with .php in url not working
- Add custom directory in URL
- Using two permalinks for one post
- Custom rewrite rules for a $_GET request
- Nice RSS Feed URLs for each custom post type
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- Put post ID on the custom post type URL
- Rewrite url / permalink for default archive – yearly / monthly
- Permalinks, Rewrites, Get Variables, Oh My!
- Change permalink for a single post entry
- Remove the Parent category from the permalink but leave the child category
- Apostrophe in permalink results in page not found
- Can’t get rewrite rules working
- Multilanguage URLs
- Rewrite my default post URL
- When is it a good idea to build a permalink structure from scratch?
- I need a custom permalink for my website
- How to reset canonical URLs / fix redirect loop
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- Permalinks: Page Not Found
- WordPress blog posts permalinks giving 404 on nginx
- Does changing a post title of a published post automatically change permalink?
- After updating to 4.8 permalinks will not work (all 404)
- Remove custom taxonomy base from URL
- Add custom post type name in term link?
- Force wordpress to display page with same url structure as categories
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- How can i have a custom post type with more slugs for each post?
- URL rewriting: removing the site’s basename for a specific category
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- Rewrite rule intended for CPTs gives 404 for pages
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalink structure between 2 custom post types and a taxonomy
- Nginx url rewrite rule problem
- 404 error using Meta for Permalink rewrite
- Disable date based archives for all categories except one
- Permalinks only for posts
- How to rename ‘Tag Base’ with WPeC 3.8?
- Custom rewrite rule ignored
- How to handle paging/pagination with a custom permalink?
- Remove parent page from url
- Visiting posts results in 404 errors after host migration
- Custom URL rewrites for templates
- Redirecting “wrong” but working links to their canonical URL in order to prevent search engine penalties (e.g. /123/ at the end of URLs)
- How to change custom post type, blog post and page permalink by template?
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Access or edit custom generated permalinks with WP_Rewrite
- optional parameter in permalink structure
- Custom permalink structure with %postname% in front of domain name
- How to get raw unwritten querystring
- Multiple sites with pretty permalinks with nginx
- All in One Seo and Permalinks
- Creating an alternate path for a page
- rewrite based slug standar post wp
- How to change URL from /%postname%/ to custom-name/%category%/%year%/%monthnum%/%day%/%postname%/
- remove SLASH on single_post but KEEP on categories and parent pages
- Adding a ‘blogs’ prefix in the URL structure but only for blogs
- Extra url paths as variable
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Add slug to default post permalinks ONLY
- permalinks constantly needs re-saving
- Permalink structure /page/page/cpt-post gives 404 with pagination
- WordPress and NGINX – permalinks are not working with ending slash
- a way to support totally different url structure
- Multiple Permalink Patterns for one page
- Pretty Filter URL
- How to change URL of my pages?
- Dynamically populate permalinks
- Converting WP Page to use full explicit paths?
- Prevent guessing slug
- Once redirected by Rewrite rules, how can WordPress know the page?
- ReWrite Permalink to New Permalink Nginx
- Customize category permalinks
- Update permalinks
- Losing the original URL when using add_rewrite_rule
- Custom Permalink Base
- My wordpress site must be being affected by outside sources [duplicate]
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- Permalinks, how to show them in post
- permalinks url with woocommerce
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Blog url disappears
- Add additional URL variations for a Post
- How to make my custom permalink pull up the correct post