Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.
Comment #2
renatogComment #3
renatog