You are just doing it wrong. Adding a per user rewrite rule will just bloat the rewrite “table” and slow down the URL parsing process. You need to come up with a generic rewrite rule which will work for all users, or write an alternative url parsing using the ‘do_parse_request filter.
Your core problem is that your URL structure as it is now “collides” with the url structure of posts/categories/etc, and the best way is to just use a constant predictable prefix for your user urls maybe something like /user/{user login}/...
otherwise, the only sane option in a site with many users is to do your own parsing.
Related Posts:
- Change author permalink
- How to display a public profile page for registered users with custom slug?
- Change author slug and functionality
- Need To Add Custom rewrite base url for individual user
- Advanced author permalinks
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- How to get links to user and tag by its name?
- Change author permalink using htaccess?
- Author URL using wrong domain after using Edit Author Slug
- How to allow different authors to use same post slug?
- Author permalink
- Customized author slugs not working with get_author_posts_url method
- Change the author posts link using custom user metadata
- Lists Top Authors by Most Recent Posts
- How does WordPress handle permalinks?
- Get page permalink without wpurl
- Can I use REST-API on plain permalink format?
- How to change ‘with_front” key from an existing custom post type?
- Make post slug have priority over category slug
- Adding anchor to paginate_links + Safari anchor bug
- How to stop permalink redirects for a particular slug
- Why does WP not use relative links when linking pages?
- What is the action or filter for changing permalink in Edit Post/Page?
- Remove Custom Taxonomy Slug from Permalink
- WordPress Links Not Working After Migration
- Migrating WordPress blog to New Webhosts, something is adding a # and gibberish
- Adding File Extensions to Attachment Page Permalinks
- How to tranform Headlines into linkable permalinks?
- Best way to add internal link in widget
- Changing search URL to something other than “search”
- article pages not displaying on local instance of wordpress site
- breadcrumbs & rel=”nofollow”
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- Permalinks for pages
- Create unique alphanumeric ID on wp_insert_post
- Programatically changing post’s permalink when identical post type is published
- Exclude / Blacklist Permalinks
- Point domain to different webhost’s subdirectory wordpress
- 404 Error Problems with sCategory Permalink plugin
- Default setting permalink /blog/
- Need help getting my Permalink structure right
- Redirect Uploads Folder to Query Vars in WordPress
- how to link post-thumbnail to original img in a lightbox?
- Losing preview ability: W3 Total Cache + Post name permalinks
- Get the url of a page template without using the page slug and ID
- flush_rewrite_rules breaks permalinks
- How to show permalink auto when type text in post tiltle?
- Accessing Subdirectories in WordPress Install
- Permalink for custom post type
- How to change “attachment_id” in attachment permarlink?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Custom permalinks in WordPress
- Permalink opens attachment instead of page
- How can I say if a URL is a post, page, or taxonomy archive?
- Changing WordPress routing to load the same page for different URLs
- Custom post type clean shortlink
- cannot link a external url, present page url acting as parent url
- add_rewrite_rule on default post type
- how to find duplicated permalinks?
- the_content(); erroneously closing off previous opening before it
- Bulk append URL (add word to slug)
- Conditional Permalink based on category?
- Permalink Custom Page Template
- permalink error when modifying sanitize_title_with_dashes function
- The requested URL was not found on this server [closed]
- Shortcodes not working
- How to create posts or pages with the names in wordpress?
- WordPress permalink not working on subdomain
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Extending page urls without getting a 404
- Permalink conflict with React Router in subfolder
- Add /blog prefix for all WordPress front end url
- Permalink structure has suddenly changed
- How to experiment with permalink structure on a select number of posts
- In a multisite, how can I get posts from one site and display their permalinks in another site?
- Why does page for hierarchical taxonomy parent term go 404?
- Custom permalink gives 404 error only in some pages
- Can I link to content dynamically from a page to a new page?
- Bulk update set of URLs via SQL
- Custom permalink for one category
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- Remove index.php from URL (WP installed in subdirectory)
- Choose permalink on a per-post basis?
- Single.php not loading when permalink only contains date information
- WooCommerce product permalink changed
- Different Permastruck Between Ajax Request & Normal Request
- Imported posts using wrong domain name
- Is there a way to add slug to home_url on this function?
- Problem with multiple tags in URL
- Custom WP permalink structure
- 404 error on second page load for child-pages
- Permalink structure as code in back-end?
- Internal Server Error every time I push up my WordPress Project to Heroku
- region selection
- Redirecting From An Old Permalink Structure
- WordPress custom permalinks, pages are now 404
- WordPress home page showing 404 error
- Include language variable in url
- Is it posible to translate a url prefix?
- Page permalinks are http but show up as https?