Migrating (partially) from JSPs to Drupal: request advice on wildcard redirects from 'folder/*.jsp' to Drupal nodes
I have setup a new Drupal site at:
I have moved an old JSP site down to:
http://www.webel.com.au/oldjsp/ (it is now essentially down)
The new Drupal/PHP site - which exploits books heavily - has quite different structure, although many of the
Drupal aliases reflect to some degree the JSP folder structure, and so are suitable targets for catch-all redirects.
I am already gettings lots of Page Not Founds (mostly due to indexing robots I assume), both for images and for complex URLs such as:
http://www.webel.com.au/uml/parsing/index.jsp?page=wikipedia#particle
All up there are perhaps a few hundred such cases; some have clear targets on the new Drupal site, some don't. In most cases it would be sufficient to map from the JSP folder to an equivalent book branch in Drupal.
http://www.webel.com.au/uml/parsing_analysis (drupal alias)
http://www.webel.com.au/node/120 (same thing as drupal node url)
So a possible solution is to map - using wildcards - EVERY '*.jsp'
(and not all such pages are called 'index.jsp', and some have queries) from:
http://www.webel.com.au/uml/parsing/*/../*/*.jsp\??*=*
(my pretend wildcard regexp for all JSP under /uml/parsing/ physical folder)
http://www.webel.com.au/uml/parsing_analysis (Drupal PHP node)
If only I new how to do that easily !
Note however that I have other JSP sub-projects that are active and should work, so that I don't want to just remap ALL index.jsp on the entire site to the Drupal home page:
http://www.webel.com.au/nexml/index.jsp (works, self-contained)
I need to be able to do it per physical folder. And I will also need JSP anyway for other projects, I don't want to simply remap all JSPs.
I am already using the excellent Path Redirect module for individual cases, however I can't handle all cases like that.
I will trial the Search 404 tonight, it may at least help.
I have also been doing some Apache rewrite rules research tonight, and I do have access to the .htaccess on my host, so I would welcome advise on .htaccess rewrites, although I realise this may be beyond the scope of Drupal forums.
Very grateful for any advice or feedback,
Webel

You're on the right track, as far as I can see.
Unfortunately in any site migration like yours there is no magic silver bullet. So start with .htaccess files, perhaps per jsp directory (although you can probably do the same in the main top level one), and come up with the best rewrite rules on a per directory basis that you can. Keep an eye on your 404 list and pick out the exceptions to handle with the path redirect module. Google already makes learning about Mod ReWrite easier than anything I can add to it. So - keep up the good work! (hope this feedback was encouraging, not the opposite!)
- Robert Douglass
-----
my Drupal book | Twitter
PS turn CSS and JS aggregation on
it's under admin/settings/performance. It will make your pages load faster.
- Robert Douglass
-----
my Drupal book | Twitter
Thanks for detailed feedback
Indeed encouraging and helpful.
Webel, "Elements of the Web", Scientific IT Consultancy,
For UML, UML Parsing Analysis, SysML, XML, Java, symbolics
http://www.webel.com.au (under migration to Drupal)
"See a need, fill a need.", Bigweld (from "Robots")