So I’ve solved this problem, but I’m still scratching my head about the “solution”:
add_rewrite_rule('api/autho/?$','index.php?__api=1','top');
This version of the rewrite rule works for some reason. I’m guessing that there’s some sort of namespace conflict that I accidentally stumbled across. Maybe /auth/
is used somewhere else?
Related Posts:
- Why doesn’t flush_rewrite_rules run on plugin activation?
- rewrite URL based on selected taxonomy for post page
- How to Rewrite WordPress URL for a Plugin
- Rewrite url for existing page without flush_rewrite_rules
- URL rewriting must be activated manually for my plugin
- How to change the URL pattern for single post view
- How To Consistently Enforce Rewrite Rule in Plugin Development
- Help With Rewrite_Rules For a Custom Plug-In
- Adding rewrite rule dynamically
- Problem with dinamic add_rewrite_rule()
- Remove custom post type slug from URL and add taxonomy Slug
- HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?
- How can I add rewrite rules to a class-based plugin?
- configuration of .htaccess for add_rewrite_rule to make sense
- Forward an old url rewrite scheme to a new one?
- How to link to custom “archive like” page with custom permalink rules “dynamically”
- Custom post type change permalink query
- Add variables from rewrite rules to query var
- Using meta_key & meta_value in add_rewrite_rule
- Any way to make Apache’s internal redirect work?
- Custom slug in url for CPT and taxonomy
- add_rewrite_rule not working
- How to Rewrite WordPress URL for a Plugin
- Virtual Page with Registration form
- How to use permalink query to go to specific tabs in posts
- How to Rewrite WordPress URL for a Plugin
- URL rewrite parameter lost (add_rewrite_rule)
- Custom rewrite, url path with parameters to a page
- Need help with add_rewrite_rule
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Multiple post types – share same ReWrite slug?
- Custom frontend page for plugin without a ‘physical’ page?
- How to add a custom URL placeholder to author archives?
- How to modify URL structures in custom post types and taxonomies or terms
- add_rewrite_rule, plugin activation and plugin deactivation
- Make post slug have priority over category slug
- permalinks with get variables
- WordPress plugin how to run function when button is clicked
- Permalink rewrite with custom post type and custom taxonomy
- Filter to change the content of 404 page
- flexible rewrite ‘ramble’ URLs with WordPress
- Use an empty page to build custom plugin output
- Change the custom post type permalink
- External Rewrite Rules
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- WordPress Rewrite rule for nested post types
- Custom rewrite rule serves content, but returns 404 error code
- How to Modify Existing Rewrite Rules?
- How to set up Author archives with sub category URL
- Custom url for a plugin page add_rewrite_rule WordPress
- Permalinks: Page Not Found
- remove sub-category of Custom Post Type from permalink structure
- WordPress add_rewrite_rule() cannot visit lower url levels
- Is a permastruct possible on pages?
- How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)
- How to change custom post type permalink structure
- How can I turn a custom wordpress page into a product page?
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- How to remove specific category from URL in WordPress
- Changes in permalink structure in WordPress and how to apply to in-site links
- Custom Permalink to remove category word , keeping posts permalink with date?
- Custom permalink leads to index page
- Custom rewrite rule ignored
- wordpress how to replace url /bar with foo/bar for custom post type
- Create page (not the post type) dynamically
- Combine multiple CPT names to create valid permalinks
- Show content without a post
- Getting back a permalink from custom url
- How to get post image root URL?
- Exclude single page from permalink rule
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Rewrite rule not passing variable
- Rewriting Image URLs from dynamic to original
- Remove subcategory slug from url
- rewrite based slug standar post wp
- Rewrite URL for CPT to domain/post-name/post-id
- Change cannonical URL after changing url with add_rewrite_rule()
- How do I get the correct URL?
- Home page is not loading, where in other pages are displaying on the site
- Custom permalink structure for custom post types including multiple taxonomy
- Multiple URL rewrite rules and get every prams
- Using a template file for a specific custom URL
- WordPress Own Rewrite Rules
- WordPress custom url without using any of the custom tags given
- Get the current post/page URL with plain permalinks
- Add slug to default post permalinks ONLY
- Author Meta in Author URL Link
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Two CPT: one is using part of the custom rewrite slug from the other
- Pretty Filter URL
- WordPress Pagination Custom Rewrite Rule for Pages
- rewrites and custom links in page need help with add_rewrite_rule
- Rewriting URLs with a query string
- Prevent guessing slug
- Parent cpt/child custom post type URL permalink relationship
- WordPress custom permalinks, pages are now 404
- redirect word-press page with page values
- What is the best way to relate different custom post types?