Solved

Redirect .asp page to Drupal node?

Posted on 2013-06-07
4
3,162 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

708 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

17 Experts available now in Live!

Get 1:1 Help Now