“Users” are basically “authors” in WordPress so those pages are available at example.com/author/{user-name}/
(with or without the trailing slash) and what you are looking for is actually to change the “author permalink base” for the URL rewrite. eg:
add_action( 'init', 'set_custom_author_base' );
function set_custom_author_base() {
global $wp_rewrite;
$wp_rewrite->author_base="user";
}
You can then add (or modify) an author.php
template in your child theme directory to output what you would like to show of the user (but of course not sharing private user info in public URLs like this.)
Of course this is a simple example, it might be easier to do it with a plugin like this if you want to keep the /author/
for some roles but change it for others.
Related Posts:
- How to prevent automatic redirection of 404 errors and “incorrect” URLs?
- Disable WordPress URL auto complete
- Redirect user to original url after login?
- Disable ONLY URL auto complete, not the whole canonical URL system
- User redirect to destination URL after login
- Redirecting WordPress /.htaccess / HSTS / SSL
- Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?
- How to setup 301 redirects for multiple query string URLs?
- Stop unwanted WP redirection to new url
- How does WordPress redirect to WooCommerce shop page? [closed]
- WP redirects all pages from new domain to old domain
- Does WordPress automatically redirect url without parent slug?
- How to redirect visitor to a custom URL using PHP code in functions.php
- Redirect home to another page with htaccess
- Why does wp_redirect strip out %0A (url encoded new line character) and how do I make it stop?
- How to redirect URL with subfolder to the same URL but without subfolder?
- How to redirect a page into file?
- How to redirect after login getting a variable from url (for example with the language)
- How can I replace my primary url globally with a parked one?
- URL redirect problem
- Adding rewrite rule dynamically for search results redirecting to 404 URL
- How to redirect to clean links with this code
- reducing number of URL Redirects and increasing speed
- URL masking of subdomain to main domain using .htaccess
- Disable WordPress URL auto complete
- Redirect user to original url after login?
- Redirect non existing page to frontpage
- store URL global before we redirect
- How can I do a url redirect to include a wordpress username?
- WP_List_table with form of method=GET redirects to wrong url after submit
- Redirect old URL (with different post ID) to new URL
- How to fix automatic redirects?
- My redirect URL doesn’t show any pages on my website [closed]
- How do I change the home page to the registered user’s profile page
- Preventing Canonical Redirect for CDN
- URL redirection
- URL redirect regular expressions redirecting all after first viriable
- Disable WordPress URL auto Redirect
- Redirect only PDFs in different folders?
- How to disable WordPress URL autocomplete / recognition?
- using wp_rewrite but keep the original url in the address bar
- I’ve move my site but URL still goes to the old site
- Redirect based on $_GET parameters
- International characters in slugs to redirect to
- Rewrite rule for incoming urls
- URL Custom Rewrite
- How to handle expired assets/content when user has direct URL
- How to change Ugly link?
- Redirect ignore last URL segment
- How to force a 404 on WordPress
- 301 redirect instead of 404 when URL is a prefix of a post or page name?
- Correct way to hide pseudo pages from being shown?
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirect to post after submission with Gravity Forms? [closed]
- I want to redirect the url to the previous page
- Headers already sent – WordPress core
- Import WordPress Post Slug with Forward Slash
- Create a php callback/endpoint for an OAuth script
- How to redirect user to a page after form submission
- Too many redirects when using wp super cache [closed]
- 301 Redirect To Post ID
- Redirect after password update
- add_rewrite_rule fro html to another url not working
- Changed permalink structure. Need help with redirecting old posts
- Redirect user to login before viewing custom post
- How to add new redirection on wordpress site
- redirecting and showing notice from previous action
- Make posts 410 dynamically
- Redirect homepage with htaccess, except if I enter the link adding “/home”
- How can I make my WordPress site redirect to subdomain once successfully login they will redirect back to root domain
- 301 Redirect all page and post urls from .html to /
- wordpress_redirect returns different headers for HEAD and GET requests
- wp_login_form redirect problem
- How can I redirect users on the new 404 page without plugin?
- How do I write a subdomain redirect?
- How does WordPress format the url on a 301 when a trailing slash is missing?
- Redirection on domain name
- htaccess redirect from specific urls of my site to the homepage
- Changing permalinks and redirecting urls
- htaccess 301 Redirect not working from aspx to new WP permalink
- How to redirect user after session timeout
- Mass .htaccess URL Forwarding
- How to point a public URL to internal (hidden) server with all links following.
- Redirecting simple big problem
- Wp Remote get with manual redirect
- Add base folder to CPT and 301
- how to redirect non logged users to login page and redirect to another page with saved data?
- How to remember which page the user was on before logout?
- How to automatically redirect category pages (301) when changing the location of a category in the hierarchy
- 301 Redirects from old WordPress domain
- How to make front page temporarily show content of internal page
- redirect to another page if user has registered successfully
- WordPress redirect users from certain countries to subpage of language version
- Unable to access WP test site
- How do I point two urls to the same child site in a multisite config
- Force SSL on a single page which is used as iFrame
- Show page without reference to post (like front-page)
- How to redirect all pages of a blog to a new blog
- Best SEO way to redirect from all “posts” to home url
- After migration index page still redirects to old url