MyBB Community Forums

Full Version: how can i change the user url?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello i need help to change my userpage url



for now i have
https://mywebwebsite.com/member.php?acti...file&uid=1

but i want something like this.
https://mywebwebsite.com/user/username
The closest you will get it this: https://community.mybb.com/mods.php?action=view&pid=789

It might be possible to modify the rewrite rules to have the path you want.
(2022-12-23, 10:50 PM)Matt Wrote: [ -> ]The closest you will get it this: https://community.mybb.com/mods.php?action=view&pid=789

It might be possible to modify the rewrite rules to have the path you want.

I want to but does it mean I have to rewrite everything?
you can use what Matt posted and then maybe something like this as your rewirte

RewriteRule ^profile/([0-9]+)/?$ member.php?action=profile&uid=$1 [L,QSA]
RewriteRule ^profile([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
(2022-12-23, 10:56 PM)marblehornets Wrote: [ -> ]
(2022-12-23, 10:50 PM)Matt Wrote: [ -> ]The closest you will get it this: https://community.mybb.com/mods.php?action=view&pid=789

It might be possible to modify the rewrite rules to have the path you want.

I want to but does it mean I have to rewrite everything?

If you literally only want to do it for user profiles then you'd need a plugin to handle the server-side part, as MyBB expects a user ID to be in the URL not a username, and you'd need to change the URL format that MyBB outputs on the page too.