Avatar of drupal_100
drupal_100
Flag for United States of America asked on

Drupal url_alias partially change

How to change url_alias partially according to a pattern?

We have site with reports to users.
We continue to update the reports with new content node but the url_alias kept same.
For example,
<site>/report/report_a
<site>/report/report_a/subreport_1
<site>/report/report_b
…...
Users bookmark the pages. So they can get into the reports directly.

Recently we change the path pattern with /docs/ in front:
<site>/docs/report/report_a
<site>/docs/report/report_a/subreport_1
<site>/docs/report/report_b
…...
Now the new content nodes go to these url_alias.

But the users have booked mark the pages.
So we want to make them previous book marks, url_alias, can be redirected into the new path.
For example,
<site>/report/report_a to be redirected into <site>/docs/report/report_a
<site>/report/report_a/subreport_1 to be redirected into <site>/docs/report/report_a/subreport_1

That means to make /report/* paths to be redirectly to /docs/report/* paths
Here * is wildcard.
DrupalPHPWeb-Based CMS

Avatar of undefined
Last Comment
Aaron Feledy

8/22/2022 - Mon
nanharbison

Use the Drupal redirect module to redirect as many m]pages as you want:
https://drupal.org/project/redirect
drupal_100

ASKER
I am in Drupal 6.
Could you please give detailed information how to use this ?
ASKER CERTIFIED SOLUTION
Aaron Feledy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck