Digimer wrote: > Is it possible to (easily) move all existing pages on a wiki to a sub > "directory"? That is, move pages line "foo", "bar" and "baz" to > "archive/foo", "archive/bar" and "archive/baz"? > > Thanks!
Yes, you could easily do that with a query on the page table. But instead of using "archive/foo", it'd be preferable to use a new namespace so it looks like "Archive:foo". MediaWiki treats namespaces specially, and will allow ou to eg. not search on pages inside Archive:. The query for that would be even easier: UPDATE page SET page_namespace=100 WHERE page_namespace=0; (assuming that the new namespace gets number 100, and moving only pages from the main namespace, not eg. from the project one). For talk pages: UPDATE page SET page_namespace=101 WHERE page_namespace=1; _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
