Username as a path

人走茶凉 提交于 2019-12-02 19:19:25

问题


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 to do this.


回答1:


With pathauto, you just have to configure user paths with a user token, e.g. [user:name].




回答2:


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



来源:https://stackoverflow.com/questions/5961990/username-as-a-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!