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
Solved

Drupal url_alias partially change

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get a subdirectory name from a url 5 27
Undefined variable problem 5 23
Ajax and PHP 9 29
Force PDF to open inline as opposed to dowload 16 22
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

860 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