Solved

Redirect .asp page to Drupal node?

Posted on 2013-06-07
4
3,291 Views
Last Modified: 2013-06-24
Old site is .asp, new site is Drupal.

If old page is www.site.com/aboutus.asp, how can I have it directed to  www.site.com/?q=aboutus  ?

There are 450+ asp pages that have their Drupal equivalent. So each page needs to go to its new version.

Not sure if this is done on Linux tier? Apache tier? Drupal tier?
0
Comment
Question by:sandshakimi
  • 2
4 Comments
 
LVL 5

Expert Comment

by:stephencolson
ID: 39229314
I recommend the redirect module: http://drupal.org/project/redirect

If you have a spreadsheet of old pages and the new equivalent, I would recommend writing a quick sql script to bulk load them in to the tables redirect uses.
0
 
LVL 12

Accepted Solution

by:
junipllc earned 500 total points
ID: 39229339
You can do this in Drupal, perhaps, using a redirect module (there are several), but it'd probably be better just to do it in Apache:

Redirect permanent aboutus.asp http://www.site.com/?q=aboutus

Put one of those lines for each page.

If you need an automated way to do this then there are a number of ways to do it, but I think all will require writing a script to catch the 404 (from the .asp that doesn't exist), parse the URL, and then redirect. Again, this would be on the Linux/Apache tier.

Also, I'd highly recommend that you use "clean urls" instead of the ?q=path method:

https://drupal.org/node/15365

Cheers,

Mike
0
 

Author Comment

by:sandshakimi
ID: 39229499
I thought Redirect module wouldn't accept .asp page?
0
 
LVL 5

Expert Comment

by:stephencolson
ID: 39229506
Redirect takes any given input string regardless of extension. To it, file.asp is no different than index.htm or "some/other/path". It is all just text.
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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 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

23 Experts available now in Live!

Get 1:1 Help Now