Solved

Drupal url_alias partially change

Posted on 2014-01-10
3
332 Views
Last Modified: 2014-01-21
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.
0
Comment
Question by:drupal_100
3 Comments
 
LVL 17

Expert Comment

by:nanharbison
ID: 39771780
Use the Drupal redirect module to redirect as many m]pages as you want:
https://drupal.org/project/redirect
0
 

Author Comment

by:drupal_100
ID: 39771991
I am in Drupal 6.
Could you please give detailed information how to use this ?
0
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
ID: 39772430
For drupal 6, use the Path Redirect module. It will provide a simple interface for creating redirects from the old path to the new one.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now