[Mediawiki-l] How to redirect a whole "subtree"

Dr. Volker Riediger riediger at uni-koblenz.de
Mon Jan 18 11:01:06 UTC 2010


Dear folks,

I need a solution for the following problem:

In my MediaWiki, there was a huge tree of pages named like

...mywiki/a
...mywiki/a/b
...mywiki/a/b/c
...mywiki/a/b/d
...mywiki/a/e
...mywiki/a/e/f
...mywiki/a/e/g
and so on.


For some reason, I had to delete all those pages below "a" (done by  
maintenance/deleteBatch.php).

Now, I'd like to display a single information page if anybody uses an  
outdated deep link instead of the usual message "There is currently no  
text in this page, you can search for this page title in other pages  
or edit this page."

But I don't want to create 500+ redirects... Is there another way to  
show "mywiki/a"  when sombody uses "mywiki/a/b/c"?

This means, each page with prefix "a/" shoud be redirected to "a".

-- 
Thanks in advance, best regards: Volker Riediger
_______________________________________________________________________

Dr. Volker Riediger                 E-Mail: riediger at uni-koblenz.de
University of Koblenz-Landau,       Voice:  +49 261 287 2706
Institute for Software Technology,  Fax:    +49 261 287 2721
PF201602, D-56016 Koblenz, Germany  http://www.uni-koblenz.de/~riediger



More information about the MediaWiki-l mailing list