Solved

Drupal url_alias partially change

Posted on 2014-01-10
3
334 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

19 Experts available now in Live!

Get 1:1 Help Now