Support » Fixing WordPress » Adding www to the Domains of a Multisite Network

Viewing 4 replies - 1 through 4 (of 4 total)
  • Krishna



    Thanks Krishna, found it a bit complicated so I just did a reinstall…




    Did the reinstall solve your problem? If so, please mark the topic as marked.


    I have successfully converted my multisite from non-www to www using the following method. Please be cautious and backup your db before doing it. Also read all the following instructions completely before starting the process.

    1. edit wp-config.php and change
    define(‘DOMAIN_CURRENT_SITE’, ‘’);
    define(‘DOMAIN_CURRENT_SITE’, ‘’);

    2. get the search & replace script from and read the instructions on the site on how to use it.
    It is straightforward as explained below. Put the downloaded script in your website home folder and go to
    step1: select the pre-populate the db values option and clik submit
    step2: check your pre-populated db details and click submit
    step3: select the tables (select 10 at a time: If you select all of them, the script execution time might exceed and would fail. So either select few tables at a time or increase your script execution time in your php.ini). Do not select “Leave GUID column unchanged”, so leave this unselectecd. Because this is the reason (to update GUID) we are using this script to update the db.
    step4: search for “” and replace with “”. ***NOTE***: here make sure to put the http:// infront of your domain in your search terms, because you will have entries in the db for folders such /home/blahblah/public_html/ and you do not want to replace these instances. So you have to search and replace for to
    step5: The results shown on how many are replaced on the selected tables. Now use browser’s back button to go back to step3 and select the next set of tables and continue the process until you finish all the tables.

    3. During the search & replace process, let us say you would start search and replace from and in the middle it might say permission denied. Because for the main domain the path would have already changed to So if this happens visit and restart the process and complete the search and replace for all the tables.

    4. delete the file searchreplacedb21.php from your domain.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding www to the Domains of a Multisite Network’ is closed to new replies.