What I'm trying to achieve is having a single Wordpress page that would "manage" multiple child paths:
/blog_url/user/john
and
/blog_url/user/steve
both paths call the same page /about?name=
john or steve.
Is this possible in Wordpress or does it need a custom ReWriteRule? If neither, what is the best way to accomplish this?
You do need a custom rewriterule in your htaccess to do that. Something like:
RewriteRule ^user/([^/]+)/ /user/?name=$1 [NC]
And then you would use $_GET['name'] and use it in your page's code
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.