I have a MediaWiki 1.36.1 website with nearly 2,500 content webpages (generally all of these are either article
or Category:
) which I consider to migrate to Drupal.
Moving each piece of content from MediaWiki to Drupal isn't feasible due to heavy usage of MediaWiki syntax inside the source code of each article and I either can't or don't want to translate it to Drupal CKEditor syntax.
I might backup and delete the MediaWiki website, run it locally on a local server environment and then manually migrate about 500 relevant articles to my online Drupal installment (on the same web domain).
The problem with that is that I would have nearly 30,000 404 webpages because MediaWiki creates at least 10 webpages per each webpage (1+15, if not 1+ 150 if not double than that) such as:
- Talk webpage
- History webpage
- Revision webpages
- History diff webpages
- What-links-here webpage
- Recent-changes-in-webpages-linked-from-here
- Printable version webpage
- Permalink version
- Information about this webpage — webpage
- Source code webpage / Edit webpage
- Statistics webpages
- And probably more
I can of course buy a new domain but I want to stay with the same domain.
I thus probably need to automatically redirect all 30,000 404 webpages to the homepage.
How to migrate all 404 webpages to to the homepage by Drupal itself and is there another, better approach to solve my problem?