Solved

Redirect .asp page to Drupal node?

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

696 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