Solved: 1 Year, 4 Months ago how can i change the user url?
#1
Solved: 1 Year, 4 Months ago
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
Reply
#2
Solved: 1 Year, 4 Months ago
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.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#3
Solved: 1 Year, 4 Months ago
(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?
Reply
#4
Solved: 1 Year, 4 Months ago
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]
Reply
#5
Solved: 1 Year, 4 Months ago
(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.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)