Solved

Redirect .asp page to Drupal node?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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 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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

832 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