Solved

Drupal url_alias partially change

Posted on 2014-01-10
3
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
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…

740 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