Hello,

I used views ui with contextual filters to add related content to my page. So my URLs look like this /projects/1/user-name. The number is the uid used in contextual filters to retrieve related content.

I would like to remove /1 from the url to get /projects/user-name. I didn't find a solution with views because it need the user id. The user name is not working.

Is there a way using .htaccess and mod rewrite to strip the uid from my url.

Thank you

example here:
http://iconsulting-fr.com/portfolio/projects/1/damien-duez
http://iconsulting-fr.com/portfolio/consultant/1/damien-duez

Comments

MustangGB’s picture

Issue summary: View changes

Closing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.

renatog’s picture

renatog’s picture

Status: Active » Closed (outdated)