[Mediawiki-l] Changing the name of my wiki

Mike Valstar mikevalstar at gentoo-wiki.com
Mon Aug 22 17:18:17 UTC 2005


you could do this

SELECT * FROM page,revision,text WHERE rev_page = page_id AND 
rev_text_id = old_id AND old_text like '%[[old_project_title:%'

this will give you a list of all pages that use the old title.. then you 
need to go in and fix them... you could use mysql to do a REPLACE with 
an update

UPDATE text SET old_text = replace(old_text, '[[old_name:', '[[new_name:')

THIS COULD BREAK THINGS

I suggest you manually change them

Mike Valstar

casper.levy at eu.nabgroup.com wrote:

>Hi i would like to change the name of my wiki and have the new name 
>reflected in the url's that are used to access the pages. I tried renaming 
>all the relevent parts in localsettings.php and also renaming the root 
>folder containing the wiki. This almost worked accept when ever i try and 
>click on a link away from the front page the link points to a location 
>with the old wiki name in it and obviously doesn't find it.  Is there 
>anyway to rebulid the mysql database so that all the links are rewritten 
>according to the new name? 
>
>regards 
>caspar 
>
> 
>
>===============================================================
>National Australia Group Europe Limited (Company Number 02108635, Registered Office 88 Wood Street, London EC2V 7QQ) (NAGE) is a subsidiary of National Australia Bank Limited (an Australian registered company). The following UK companies are authorised and regulated by the Financial Services Authority: Clydesdale Bank PLC (trading as Clydesdale Bank and Yorkshire Bank),  MLC Savings Limited, MLC Trust Management Company Limited, Clydesdale Bank Insurance Brokers Limited, Yorkshire Bank Financial Services Limited, National Australia Insurance Services Limited and Custom Fleet Limited. 
>
>The views and opinions expressed in this email may not reflect the views and opinions of any member of the group of which NAGE forms part. The information contained in this message is confidential and may also be privileged. It is intended only for the addressee named above. The unauthorised use, disclosure, copying or alteration of this message is strictly prohibited. If you are not the addressee (or responsible for delivery of the message to the addressee), please notify the originator immediately by return message and destroy the original message. This message and any attachments have been scanned for viruses prior to leaving the NAGE network. However, NAGE does not guarantee the security of this message and will not be responsible for any damages arising as a result of any virus being passed on or arising from any alteration of this message by a third party. NAGE may monitor emails sent to and from the NAGE network.
>_______________________________________________
>MediaWiki-l mailing list
>MediaWiki-l at Wikimedia.org
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>  
>





More information about the MediaWiki-l mailing list