Username as a path

后端 未结 2 1798
天命终不由人
天命终不由人 2021-01-26 06:50

I would like to have a user\'s name as a part of a URL, e.g. mysite.com/username. This should redirect to the user profile. I use Profile 2 and Pathauto, but I am not sure how t

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 07:24

    Pathauto pattern of [user:name] under User paths should do the trick.

提交回复
热议问题