So I never found out why this broke in the first place, but I did find a solution that forces the proper url to work
add_action( 'init', 'add_mypage_rule' );
function add_mypage_rule(){
add_rewrite_rule('^item/([^/]*)/?','index.php?pagename=item','top');
}
Sussed out from here:
https://stackoverflow.com/questions/18713230/wordpress-url-rewriting-parameters-in-url
Related Posts:
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- Create custom permalinks to show Custom Post Type’s relationship?
- Divi change project category slug
- Custom post type permalinks do not appear using the link functions
- Search only working on front page (index) , not working on other pages
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- WordPress Rewrite Issue
- Multiple URL from Custom post name
- append links with unique number string
- WordPress add parameters with friendly url structure
- Remove slug of multiple custom post types with and without hierarchical
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Using a variable in is_page(array())
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- How do I get current page ID in WordPress customizer file?
- WordPress custom slug (endpoint) and compare all links
- Customizer: Output default value in Customizer CSS
- How to load a template-part based on a url wildcard?
- WordPress custom post type permalink: website.com/post-name/post-id
- WordPress does not load page.php, return 404.php
- How can i upload images in an admin page?
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Static variable and add_rewrite_rule?
- Multiple WordPress Menus that will only display all pages
- Nesting if statements to echo only one string based on what tag was filtered?
- Set the checkbox as checked by default at options page
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Add child pages of parent to navbar PHP
- How can I create a list of page titles from custom meta values?
- Load a page into a div with Ajax
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- Add prefix to link url
- Theme Options Page – User Updates Logo
- Converting HTML Template to WordPress Theme
- How to change home or site url using action hooks or filter?
- How to use my style.css file outside of wordpress subdomain?
- How to show part of the_content?
- Why do WordPress rewriites seem to work differently for posts vs pages?
- Performance impact of rewriting WordPress URLs
- Wp-login appears White Screen, Error: Cannot modify header information
- How to remove the cufon script from Dzonia Lite theme [closed]
- get_the_tags() not iterating through for/while loop, but will with foreach
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- Hide categories that are not used in the post type
- 200 Rewrite blog post links
- How do I add custom bulk actions to multiple custom post types?
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- php script to change slug in post automatically
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- what is the best practice to add new field to an api route
- Grab posts by multiple categories
- Can’t access variable outside for loop
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- add custom link to wordpress media gallery modal
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Need Help Fixing My Iframes [closed]
- Avoid parallax images hardcoding
- Improve page speed loading using CDN and async or defer attribute
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- WordPress custom post type permalink rewrite shows page not found
- How to use $_GET function WordPress backend
- Append query string to all URL’s
- populate form fields in a loop with ajax
- Error in custom php function doesn’t exist
- Customizer: active_callback and sanitize_callback incompatibility?
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- post created but no permalink
- subdirectory index.php is not working
- Use URL Rewrite as well as $_GET parameters in URL?
- How to modify URL (add GET values) after front end form submission?
- Populate editor with some content of a page with a page template
- Two queries for a WP_User_Query search work perfectly apart, but not together
- parts of url disappear when using # inside href=”” [closed]
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Menu jumping when calling it via PHP
- Displaying recent posts on static page with template-part via shortcode
- How to edit widget code to add unique class name to each div?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Skt full width basic slideshow problem
- Add .htm extention to a custom taxonomy
- Help with .htaccess and Login with Subfolders
- How to disable controls in theme customizer?
- How do I link a button I created in theme customizer to a function?
- Trying to retrieve post meta
- can i fetch a custom metabox data in another page or post type?
- Is there a way to conditionally check whether a WordPress post title is empty?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- get_template_part for specific page
- How do I create my own .php file with a code part and echo it on different pages?
- WordPress add_rewrite_rules for custom URLs ending in .html
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]